@font-face {
    font-family: "Josefin Sans";
    src: url('/fonts/josefin-sans-400.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Josefin Sans";
    src: url('/fonts/josefin-sans-700.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Spectral SC";
    src: url('/fonts/spectral-sc-500.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --site-bg: #0b1822;
    --text: #9cabb9;
    --heading: #ffffff;
    --muted: #aec1d0;
    --panel-bg: rgba(3, 12, 20, 0.82);
    --card-bg: rgba(2, 10, 17, 0.75);
    --panel-border: rgba(255, 255, 255, 0.14);
    --card-border: rgba(255, 255, 255, 0.12);
    --accent: #ffaa5f;
    --accent-hover: #ffbe84;
    --menu-link: #9cabb9;
    --menu-hover: #f2300d;
    --container-width: 1175px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--site-bg);
    color: var(--text);
    font-family: "Josefin Sans", sans-serif;
    font-size: 17px;
    line-height: 23px;
    letter-spacing: -0.4px;
}

a {
    color: inherit;
    text-decoration: none;
}

h1:focus,
h1:focus-visible {
    outline: none;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(7, 19, 31, 0.75) 0%, rgba(4, 12, 21, 0.9) 100%),
        url('/images/page-bg.jpg') center / cover no-repeat fixed;
}

.site-shell--game {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    background: #000000;
}

.site-container {
    width: var(--container-width);
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

.site-header__top {
    background: #0b1822 url('/images/top-header.jpg') top left / cover no-repeat;
    border-bottom: 1px solid #334459;
    overflow: visible;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-shell--game .site-header {
    z-index: 1200;
}

.site-header__row {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    margin: 0 -15px;
}

.site-header__main {
    display: flex;
    align-items: center;
    width: 83.3333%;
    min-height: 48px;
    padding: 0 15px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    min-height: 48px;
    padding: 0;
    margin-right: 16px;
}

.site-logo img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.site-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 14px 15px 13px;
    font-family: "Spectral SC", serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--menu-link);
    transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.active {
    color: var(--menu-hover);
}

.site-header__actions {
    width: 16.6667%;
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.site-header__actions-inner {
    width: 43px;
    max-width: 100%;
    margin-left: auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.site-header__account-dropdown {
    width: 43px;
    min-width: 43px;
}

.site-header__account-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    min-width: 43px;
    min-height: 48px;
    box-sizing: border-box;
    border-left: 1px solid rgba(81, 93, 108, 0.45);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    color: #9cabb9;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
}

.site-header__account-toggle:hover,
.site-header__account-toggle:focus {
    color: var(--menu-hover);
    outline: none;
}

.site-header__account-toggle::after {
    display: none;
}

.site-header__account-toggle::before {
    margin: 0;
    width: auto;
    line-height: 1;
}

.site-header__account-menu.dropdown-menu {
    --bs-dropdown-spacer: 0;
    min-width: 176px;
    margin-top: 0;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: rgba(3, 12, 20, 0.97);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}

.site-shell--game .site-header__account-menu.dropdown-menu {
    z-index: 1300;
}

.site-header__account-menu .dropdown-item {
    color: #c1cfda !important;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.42px;
    text-transform: uppercase;
    padding: 8px 16px;
}

.site-header__account-menu .dropdown-item:hover,
.site-header__account-menu .dropdown-item:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.site-header__account-menu .dropdown-divider {
    margin: 6px 0;
    border-top-color: rgba(255, 255, 255, 0.16);
}

.site-header__logout {
    color: #ffaa5f !important;
}

.site-main {
    padding: 50px 0 72px;
}

.site-main--game {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.page-game {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #000000;
    overflow: hidden;
}

.game-ui {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(38, 71, 94, 0.16) 0%, rgba(0, 0, 0, 0) 40%),
        radial-gradient(circle at 78% 34%, rgba(54, 93, 55, 0.12) 0%, rgba(0, 0, 0, 0) 36%),
        radial-gradient(circle at 60% 74%, rgba(49, 77, 115, 0.14) 0%, rgba(0, 0, 0, 0) 40%),
        #000000;
}

/* Keep viewport as permanent back layer even if Blazor rerender drops JS inline z-index. */
.game-ui [data-game-panel][data-panel-base-layer] {
    z-index: 10;
}

.game-ui [data-game-panel]:not([data-panel-base-layer]) {
    z-index: 220;
}

.game-panel-fade {
    position: relative;
    z-index: 220;
    opacity: 1;
    transition: opacity 180ms ease;
}

.game-panel-fade--visible {
    opacity: 1;
    pointer-events: auto;
    animation: game-panel-fade-in 180ms ease;
}

.game-panel-fade--hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes game-panel-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-panel {
    position: absolute;
    max-width: min(96vw, 620px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(7, 20, 32, 0.96) 0%, rgba(4, 12, 21, 0.96) 100%),
        radial-gradient(circle at top, rgba(36, 77, 111, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.62);
}

@media (prefers-reduced-motion: reduce) {
    .game-panel-fade {
        transition: none;
        animation: none;
    }

    .game-panel-fade--hidden {
        opacity: 0;
    }
}

.game-panel__titlebar {
    min-height: 34px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.92) 0%, rgba(8, 20, 31, 0.92) 100%);
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 19.2px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.game-panel__titlebar:active {
    cursor: grabbing;
}

.game-panel__body {
    padding: 10px 11px 11px;
}

.game-panel__body--compact {
    padding: 9px;
}

.game-viewport-chat__input,
.game-viewport-chat__input:focus {
    color: #ffffff !important;
    caret-color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: text;
}

.game-panel__footer {
    min-height: 36px;
    padding: 6px 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(3, 11, 19, 0.9);
}

.game-panel--status {
    width: 520px;
}

.game-panel--status .game-panel__titlebar {
    justify-content: space-between;
    gap: 10px;
}

.game-status-gold {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffd07a;
    font-family: "Josefin Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
    text-transform: none;
}

.game-status-gold .uo-status-detail__icon {
    color: #ffb65f;
    font-size: 14px;
}

.game-panel--status .uo-status-grid {
    gap: 10px;
}

.game-panel--status .uo-status-column + .uo-status-column {
    padding-left: 10px;
}

.game-panel--status .uo-status-attr {
    grid-template-columns: minmax(0, 1fr) 44px 18px;
    min-height: 30px;
    gap: 6px;
}

.game-panel--status .uo-status-attr__name {
    font-size: 12px;
}

.game-panel--status .uo-status-attr__value {
    font-size: 18px;
}

.game-panel--status .uo-status-vital__line {
    font-size: 12px;
}

.game-panel--status .uo-status-vital__track {
    height: 8px;
}

.game-panel--status .uo-status-detail {
    min-height: 29px;
    font-size: 12px;
}

.game-mobile-health-panel {
    position: absolute;
    touch-action: none;
    border: 1px solid rgba(252, 238, 10, 0.92);
    background: rgba(5, 10, 16, 0.9);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    min-height: 22px;
}

.game-mobile-health-panel__bar {
    position: relative;
    width: 100%;
    height: 22px;
    cursor: grab;
    user-select: none;
    overflow: hidden;
}

.game-mobile-health-panel__bar:active {
    cursor: grabbing;
}

.game-mobile-health-panel__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: block;
    background:
        linear-gradient(180deg, rgba(184, 30, 46, 0.95) 0%, rgba(122, 14, 24, 0.95) 100%);
    pointer-events: none;
}

.game-mobile-health-panel__name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #f4f8ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    text-align: center;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.85),
        0 0 3px rgba(0, 0, 0, 0.78);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    pointer-events: none;
}

.game-panel--skills {
    width: 424px;
}

.game-skill-panel__total {
    color: #9cb2c3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-skill-panel__table {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.72);
}

.game-skill-panel__head,
.game-skill-panel__row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 74px 34px;
    align-items: center;
    gap: 8px;
}

.game-skill-panel__head {
    min-height: 28px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 25, 36, 0.75);
    color: #9cb2c3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-skill-panel__rows {
    max-height: 252px;
    overflow-y: auto;
}

.game-skill-panel__row {
    min-height: 34px;
    padding: 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-skill-panel__row:first-child {
    border-top: 0;
}

.game-skill-panel__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.game-skill-panel__skill {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.game-skill-panel__value {
    color: #d5e1ea;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.game-skill-panel__lock {
    display: inline-flex;
    justify-content: flex-end;
}

.game-skill-panel__lock .uo-status-lock-toggle {
    width: 16px;
    min-width: 16px;
    height: 16px;
}

.game-skill-panel__use {
    display: inline-flex;
    justify-content: center;
}

.game-skill-panel__use-button {
    width: 16px;
    min-width: 16px;
    height: 16px;
    border: 0;
    background: transparent;
    color: #ff2e7a;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-skill-panel__use-button:hover,
.game-skill-panel__use-button:focus,
.game-skill-panel__use-button:focus-visible {
    color: #fcee0a;
    outline: 0;
}

.game-skill-panel__use-button .fa-play {
    font-size: 10px;
}

.game-panel--inventory {
    width: fit-content;
}

.game-panel--inventory .game-panel__body {
    width: max-content;
}

.game-panel--inventory .uo-inventory-grid-wrap,
.game-panel--trade .uo-inventory-grid-wrap {
    --inventory-slot-size: 36.8px;
    --inventory-slot-gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
}

.game-panel--inventory .uo-inventory-grid {
    margin: 0;
}

.game-panel.game-panel--inventory.game-panel--bankbox {
    border-color: rgba(73, 170, 255, 0.92);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(73, 170, 255, 0.32);
}

.game-panel--inventory.game-panel--bankbox .game-panel__titlebar {
    background: linear-gradient(180deg, rgba(79, 174, 255, 0.96) 0%, rgba(36, 128, 217, 0.96) 100%);
    border-bottom-color: rgba(0, 21, 44, 0.72);
    color: #041326;
}

.game-panel.game-panel--inventory.game-panel--corpse {
    border-color: rgba(255, 86, 86, 0.94);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(255, 86, 86, 0.32);
}

.game-panel--inventory.game-panel--corpse .game-panel__titlebar {
    background: linear-gradient(180deg, rgba(255, 92, 92, 0.96) 0%, rgba(199, 33, 33, 0.96) 100%);
    border-bottom-color: rgba(67, 6, 6, 0.76);
    color: #240303;
}

.game-panel--spellbook {
    width: 372px;
    max-height: 432px;
}

.game-panel--spellbook .game-panel__body {
    padding: 8px;
}

.game-spellbook-panel {
    --spellbook-entry-size: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 354px;
    overflow-y: auto;
    overflow-x: hidden;
}

.game-spellbook-panel__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(2, 10, 17, 0.78);
    color: #9cb2c3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.game-spellbook-panel__entry {
    min-height: var(--spellbook-entry-size);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(18, 37, 53, 0.88) 0%, rgba(9, 23, 35, 0.88) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 4px,
            rgba(255, 255, 255, 0) 4px,
            rgba(255, 255, 255, 0) 8px
        );
    display: grid;
    grid-template-columns: var(--spellbook-entry-size) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    color: #dce8f1;
    text-align: left;
    cursor: grab;
}

.game-spellbook-panel__entry:hover {
    border-color: rgba(252, 238, 10, 0.6);
    background:
        linear-gradient(180deg, rgba(31, 62, 85, 0.95) 0%, rgba(15, 34, 50, 0.95) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 4px,
            rgba(255, 255, 255, 0) 4px,
            rgba(255, 255, 255, 0) 8px
        );
}

.game-spellbook-panel__entry:active {
    cursor: grabbing;
}

.game-spellbook-panel__entry:focus {
    outline: none;
}

.game-spellbook-panel__entry:focus-visible {
    box-shadow: 0 0 0 2px rgba(252, 238, 10, 0.25);
}

.game-spellbook-panel__icon {
    width: var(--spellbook-entry-size);
    height: var(--spellbook-entry-size);
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: grab;
}

.game-spellbook-panel__icon:active {
    cursor: grabbing;
}

.game-spellbook-panel__icon--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(252, 238, 10, 0.52);
    color: #fcee0a;
    font-size: 12px;
    font-weight: 700;
}

.game-spellbook-panel__details {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.game-spellbook-panel__name {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-spellbook-panel__meta {
    color: #9cb2c3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.game-spellbook-panel__school {
    color: #041326;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-panel--vendor-buy {
    width: 488px;
    max-height: 540px;
    display: flex;
    flex-direction: column;
}

.game-panel--vendor-buy .game-panel__titlebar {
    justify-content: space-between;
    gap: 10px;
}

.game-panel--vendor-buy .game-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.game-vendor-buy-panel__vendor {
    color: #041326;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.game-vendor-buy-panel__list {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.74);
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.game-vendor-buy-panel__row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 82px 60px 64px;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-vendor-buy-panel__row:first-child {
    border-top: 0;
}

.game-vendor-buy-panel__row:nth-child(even):not(.game-vendor-buy-panel__row--head) {
    background: rgba(255, 255, 255, 0.02);
}

.game-vendor-buy-panel__row--head {
    min-height: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 25, 36, 0.75);
    color: #9cb2c3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-vendor-buy-panel__row--head > span:first-child {
    text-align: left;
    justify-self: start;
}

.game-vendor-buy-panel__row--head > span:nth-child(n + 2) {
    text-align: right;
    justify-self: end;
}

.game-vendor-buy-panel__empty {
    margin: 0;
    padding: 12px;
    color: #9cb2c3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.game-vendor-buy-panel__item {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.game-vendor-buy-panel__icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
}

.game-vendor-buy-panel__name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-vendor-buy-panel__price,
.game-vendor-buy-panel__stock {
    color: #d5e1ea;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.game-vendor-buy-panel__qty {
    display: flex;
    justify-content: flex-end;
}

.game-vendor-buy-panel__qty-input {
    width: 52px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(3, 12, 20, 0.86);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    padding: 0 5px;
}

.game-vendor-buy-panel__qty-input::-webkit-outer-spin-button,
.game-vendor-buy-panel__qty-input::-webkit-inner-spin-button {
    margin: 0;
}

.game-vendor-buy-panel__qty-input:focus {
    outline: none;
    border-color: rgba(252, 238, 10, 0.7);
    box-shadow: 0 0 0 1px rgba(252, 238, 10, 0.2);
}

.game-vendor-buy-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-vendor-buy-panel__total {
    color: #ffd07a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.game-vendor-buy-panel__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-vendor-buy-panel__button {
    min-width: 66px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, rgba(20, 39, 54, 0.92) 0%, rgba(10, 25, 37, 0.92) 100%);
    color: #d5e1ea;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.game-vendor-buy-panel__button:hover:not(:disabled) {
    color: #ffffff;
    border-color: rgba(252, 238, 10, 0.72);
}

.game-vendor-buy-panel__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.game-vendor-buy-panel__button--buy {
    color: #041326;
    border-color: rgba(252, 238, 10, 0.8);
    background: linear-gradient(180deg, #fcee0a 0%, #d1c507 100%);
}

.game-vendor-buy-panel__button--buy:hover:not(:disabled) {
    color: #041326;
}

.game-panel--trade {
    width: fit-content !important;
    max-width: min(96vw, 820px);
    min-width: 0 !important;
    max-height: min(86vh, 640px);
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.game-panel--trade .game-panel__titlebar {
    justify-content: flex-start;
    gap: 0;
}

.game-panel--trade .game-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-panel--trade .game-panel__footer {
    flex: 0 0 auto;
}

.game-trade-panel__columns {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
}

.game-trade-panel__column {
    width: calc(
        (var(--inventory-slot-size) * 6) +
        (var(--inventory-slot-gap) * 5)
    );
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.74);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-trade-panel__heading {
    margin: 0;
    color: #9cb2c3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-trade-panel__grid-wrap {
    --inventory-visible-rows: 5;
    margin: 0;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    max-height: calc(
        (var(--inventory-slot-size) * var(--inventory-visible-rows)) +
        (var(--inventory-slot-gap) * (var(--inventory-visible-rows) - 1))
    );
    overflow-x: auto;
    overflow-y: auto;
}

.game-trade-panel__grid-wrap .uo-inventory-grid {
    margin: 0;
}

.game-trade-panel__column--readonly .uo-inventory-slot {
    cursor: default;
}

.game-trade-panel__column--readonly .uo-inventory-slot--readonly {
    pointer-events: auto;
}

.game-trade-panel__column--readonly .uo-inventory-slot:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(18, 37, 53, 0.9) 0%, rgba(9, 23, 35, 0.9) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 4px,
            rgba(255, 255, 255, 0) 4px,
            rgba(255, 255, 255, 0) 8px
        );
}

.game-trade-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-trade-panel__status {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9cb2c3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.game-trade-panel__status input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #ff2e7a;
}

.game-trade-panel__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-trade-panel__button {
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, rgba(20, 39, 54, 0.92) 0%, rgba(10, 25, 37, 0.92) 100%);
    color: #d5e1ea;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-trade-panel__button:hover {
    color: #ffffff;
    border-color: rgba(252, 238, 10, 0.72);
}

.game-trade-panel__button--accept {
    color: #041326;
    border-color: rgba(252, 238, 10, 0.8);
    background: linear-gradient(180deg, #fcee0a 0%, #d1c507 100%);
}

.game-trade-panel__button--accept:hover {
    color: #041326;
}

.game-trade-panel__button--accepted {
    border-color: rgba(138, 255, 165, 0.8);
    background: linear-gradient(180deg, #74dc8f 0%, #41a85e 100%);
}

.game-panel--squad {
    width: 344px;
    min-height: 284px;
    display: flex;
    flex-direction: column;
}

.game-panel__titlebar--squad {
    justify-content: space-between;
    gap: 8px;
}

.game-squad-panel__member-count {
    color: #07080d;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.game-panel--squad .game-panel__body {
    padding: 0;
    min-height: 0;
    flex: 1 1 auto;
}

.game-squad-panel__list {
    max-height: 284px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.game-squad-panel__empty {
    margin: 0;
    padding: 14px 12px;
    color: #93aec0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.game-squad-panel__member {
    display: block;
    min-height: 56px;
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-squad-panel__member:first-child {
    border-top: 0;
}

.game-squad-panel__member:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.game-squad-panel__member-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.game-squad-panel__member-header {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.game-squad-panel__member-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #d9e8f3;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-squad-panel__badge {
    min-height: 16px;
    padding: 0 4px;
    border: 1px solid rgba(252, 238, 10, 0.54);
    background: rgba(252, 238, 10, 0.18);
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.game-squad-panel__badge--self {
    border-color: rgba(120, 255, 180, 0.48);
    background: rgba(120, 255, 180, 0.14);
    color: #b9ffd8;
}

.game-squad-panel__member-value {
    color: #9fb7c9;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
}

.game-squad-panel__bar {
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.game-squad-panel__bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(45, 189, 108, 0.9) 0%, rgba(120, 255, 180, 0.86) 100%);
}

.game-squad-panel__kick {
    margin-left: auto;
    min-width: 58px;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(255, 98, 122, 0.64);
    background: rgba(120, 20, 33, 0.6);
    color: #ffd3db;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.game-squad-panel__kick:hover {
    border-color: rgba(255, 138, 156, 0.88);
    background: rgba(150, 25, 43, 0.75);
    color: #fff2f5;
}

.game-squad-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-squad-panel__status {
    color: #9fb7c9;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
}

.game-squad-panel__invite {
    min-height: 24px;
    min-width: 74px;
    padding: 0 10px;
    border: 1px solid rgba(252, 238, 10, 0.7);
    background: linear-gradient(180deg, rgba(52, 45, 8, 0.88) 0%, rgba(28, 23, 5, 0.9) 100%);
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.game-squad-panel__invite:hover:not(:disabled) {
    border-color: rgba(252, 238, 10, 0.95);
    color: #fff8b3;
    box-shadow: inset 0 0 0 1px rgba(252, 238, 10, 0.25);
}

.game-squad-panel__invite:disabled {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(211, 221, 228, 0.55);
}

.game-squad-invite-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    background: rgba(0, 0, 0, 0.62);
    display: grid;
    place-items: center;
    padding: 18px;
}

.game-squad-invite-modal {
    width: min(100%, 430px);
    border: 1px solid rgba(252, 238, 10, 0.84);
    background:
        linear-gradient(180deg, rgba(11, 14, 22, 0.96) 0%, rgba(7, 10, 16, 0.96) 100%);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.65);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.game-squad-invite-modal__title {
    margin: 0;
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-squad-invite-modal__message {
    margin: 0;
    color: #cadce9;
    font-family: "Josefin Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.game-squad-invite-modal__message strong {
    color: #ffffff;
}

.game-squad-invite-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.game-squad-invite-modal__button {
    min-height: 30px;
    min-width: 86px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #dde8f0;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.game-squad-invite-modal__button:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.game-squad-invite-modal__button--accept {
    border-color: rgba(120, 255, 180, 0.62);
    background: rgba(20, 108, 62, 0.66);
    color: #dffff0;
}

.game-squad-invite-modal__button--accept:hover {
    border-color: rgba(150, 255, 196, 0.9);
    background: rgba(26, 134, 77, 0.72);
}

.game-squad-invite-modal__button--reject {
    border-color: rgba(255, 98, 122, 0.62);
    background: rgba(112, 19, 33, 0.7);
    color: #ffdce2;
}

.game-squad-invite-modal__button--reject:hover {
    border-color: rgba(255, 138, 156, 0.86);
    background: rgba(136, 24, 40, 0.76);
}

.game-panel--actionbar {
    width: fit-content;
    max-width: calc(100% - 24px);
    z-index: 260;
}

.game-panel--actionbar .game-panel__drag-handle {
    min-height: 10px;
    border-bottom: 1px solid rgba(252, 238, 10, 0.28);
    background: rgba(252, 238, 10, 0.12);
    cursor: grab;
    touch-action: none;
}

.game-panel--actionbar .game-panel__drag-handle:active {
    cursor: grabbing;
}

.game-panel--actionbar .game-panel__body {
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.game-panel-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 360;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(252, 238, 10, 0.46);
    background:
        linear-gradient(180deg, rgba(12, 26, 40, 0.95) 0%, rgba(4, 12, 20, 0.97) 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

.game-panel-bar__row {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.game-panel-bar__button {
    position: relative;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, rgba(20, 39, 54, 0.94) 0%, rgba(10, 25, 37, 0.94) 100%);
    color: #dce8f1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-panel-bar__button i {
    font-size: 11px;
    line-height: 1;
}

.game-panel-bar__label {
    line-height: 1;
}

.game-panel-bar__hotkey {
    color: #fcee0a;
    font-size: 9px;
    letter-spacing: 0.25px;
    line-height: 1;
}

.game-panel-bar__badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff2e7a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.game-panel-bar__button:hover {
    color: #ffffff;
    border-color: rgba(252, 238, 10, 0.72);
}

.game-panel-bar__button:focus {
    outline: none;
}

.game-panel-bar__button:focus-visible {
    box-shadow: 0 0 0 2px rgba(252, 238, 10, 0.25);
}

.game-panel-bar__button--active {
    border-color: rgba(255, 46, 122, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(255, 46, 122, 0.28),
        0 0 10px rgba(255, 46, 122, 0.24);
}

.game-panel-bar__button--combat {
    border-color: rgba(255, 72, 72, 0.88);
    background: linear-gradient(180deg, rgba(96, 22, 22, 0.96) 0%, rgba(54, 10, 10, 0.96) 100%);
    color: #ffd7d7;
    box-shadow:
        inset 0 0 0 1px rgba(255, 84, 84, 0.24),
        0 0 10px rgba(255, 68, 68, 0.24);
}

.game-panel-bar__button--combat:hover {
    color: #fff1f1;
    border-color: rgba(255, 110, 110, 0.96);
}

.game-panel-bar__button--chill {
    border-color: rgba(73, 198, 117, 0.88);
    background: linear-gradient(180deg, rgba(20, 82, 43, 0.96) 0%, rgba(10, 48, 24, 0.96) 100%);
    color: #d5ffe3;
    box-shadow:
        inset 0 0 0 1px rgba(92, 217, 133, 0.22),
        0 0 10px rgba(83, 214, 126, 0.2);
}

.game-panel-bar__button--chill:hover {
    color: #eefff3;
    border-color: rgba(97, 225, 140, 0.94);
}

.game-panel-bar__button--noop {
    border-color: rgba(158, 171, 184, 0.34);
    background: linear-gradient(180deg, rgba(17, 31, 43, 0.92) 0%, rgba(9, 20, 30, 0.92) 100%);
    color: rgba(205, 218, 230, 0.88);
}

.game-panel-bar__button--noop:hover {
    border-color: rgba(181, 195, 209, 0.5);
    color: rgba(227, 236, 245, 0.96);
}

.game-actionbar-grid {
    --action-slot-size: 43.2px;
    --action-slot-gap: 4px;
    display: grid;
    grid-template-columns: repeat(18, var(--action-slot-size));
    grid-template-rows: repeat(2, var(--action-slot-size));
    gap: var(--action-slot-gap);
    width: max-content;
}

.game-actionbar-slot {
    position: relative;
    width: var(--action-slot-size);
    height: var(--action-slot-size);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(28, 54, 76, 0.42) 0%, rgba(14, 30, 44, 0.42) 58%, rgba(9, 21, 33, 0.42) 100%);
    color: #98afc1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.game-actionbar-slot:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background:
        linear-gradient(135deg, rgba(33, 66, 93, 0.56) 0%, rgba(18, 39, 57, 0.56) 62%, rgba(10, 24, 37, 0.56) 100%);
}

.game-actionbar-slot:focus {
    outline: none;
}

.game-actionbar-slot:focus-visible {
    box-shadow: 0 0 0 2px rgba(47, 171, 255, 0.3);
}

.game-actionbar-slot--filled {
    border-color: rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(145deg, rgba(31, 63, 88, 0.76) 0%, rgba(16, 35, 51, 0.76) 64%, rgba(10, 24, 37, 0.76) 100%);
}

.game-actionbar-slot--passive {
    cursor: default;
}

.game-actionbar-slot__icon {
    width: calc(var(--action-slot-size) - 4px);
    height: calc(var(--action-slot-size) - 4px);
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
}

.game-actionbar-slot__count {
    position: absolute;
    left: 1px;
    bottom: 1px;
    min-width: 12px;
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.72);
    color: #fcee0a;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
    text-align: center;
    pointer-events: none;
}

.game-actionbar-slot__key {
    position: absolute;
    top: 2px;
    right: 3px;
    color: #9cb2c3;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.game-actionbar-slot__label {
    max-width: calc(100% - 4px);
    color: #dce8f1;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-actionbar-slot--combat .game-actionbar-slot__label {
    color: #ffb987;
}

.game-actionbar-slot--magic .game-actionbar-slot__label {
    color: #93d5ff;
}

.game-actionbar-slot--heal .game-actionbar-slot__label {
    color: #8fe3b3;
}

.game-actionbar-slot--defense .game-actionbar-slot__label {
    color: #c2d5ff;
}

.game-actionbar-slot--utility .game-actionbar-slot__label {
    color: #ead48f;
}

.game-panel--chat {
    width: 392px;
    min-height: 304px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.game-panel--chat .game-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.game-panel--chat .game-panel__resize-handle {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    z-index: 7;
    touch-action: none;
    user-select: none;
    cursor: nwse-resize;
    background: transparent;
}

.game-chat-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 8px;
}

.game-chat-panel__messages {
    min-height: 218px;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(3, 12, 20, 0.88) 0%, rgba(1, 8, 14, 0.88) 100%);
    padding: 7px 8px;
}

.game-chat-panel__line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: 13px;
    line-height: 1.32;
}

.game-chat-panel__line + .game-chat-panel__line {
    margin-top: 3px;
}

.game-chat-panel__time {
    color: #7f95a8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.4px;
}

.game-chat-panel__speaker {
    color: #d8e6f0;
    font-weight: 700;
}

.game-chat-panel__text {
    color: #d8e6f0;
}

.game-chat-panel__line--player .game-chat-panel__text {
    color: #e7f0f8;
}

.game-chat-panel__line--system .game-chat-panel__text {
    color: #97d4ff;
}

.game-chat-panel__line--party .game-chat-panel__text {
    color: #86ddff;
}

.game-chat-panel__line--guild .game-chat-panel__text {
    color: #7ceeb2;
}

.game-chat-panel__line--whisper .game-chat-panel__text {
    color: #d5b0ff;
}

.game-chat-panel__line--combat .game-chat-panel__text {
    color: #ffbd80;
}

.game-chat-panel__line--warning .game-chat-panel__text {
    color: #ff8f88;
}

.game-chat-panel__line--emote .game-chat-panel__text {
    color: #e3d08a;
    font-style: italic;
}

.game-chat-panel__line--loot .game-chat-panel__text {
    color: #ffd87b;
}

.game-chat-panel__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.game-chat-panel__prompt {
    color: #9cb2c3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-chat-panel__input {
    width: 100%;
    height: 28px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 0 8px;
    border-radius: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    letter-spacing: -0.2px;
}

.game-chat-panel__input::placeholder {
    color: rgba(215, 227, 236, 0.6);
}

.game-chat-panel__input:focus {
    outline: none;
    border-color: #2fabff;
    background: rgba(255, 255, 255, 0.1);
}

.game-chat-panel__send {
    height: 28px;
    min-width: 54px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    color: #d5e1ea;
    padding: 0 10px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.game-chat-panel__send:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.game-chat-panel__send:focus {
    outline: none;
}

.game-chat-panel__send:focus-visible {
    box-shadow: 0 0 0 2px rgba(47, 171, 255, 0.35);
}

.game-panel--paperdoll {
    width: 392px;
    min-width: 392px;
    height: 470px;
    display: flex;
    flex-direction: column;
}

.game-panel--paperdoll .game-panel__body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-paperdoll-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    height: 100%;
}

.game-paperdoll-panel__tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.game-paperdoll-panel__tab {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #c4d4e0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-paperdoll-panel__tab:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.game-paperdoll-panel__tab--active {
    border-color: rgba(255, 46, 122, 0.72);
    background: rgba(255, 46, 122, 0.2);
    color: #fff4f9;
}

.game-paperdoll-panel__stats {
    min-height: 0;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.74);
    padding: 10px;
    overflow: auto;
    display: grid;
    align-content: start;
    gap: 6px;
}

.game-paperdoll-panel__stats-group {
    display: grid;
    gap: 4px;
}

.game-paperdoll-panel__stats-heading {
    margin: 0;
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.game-paperdoll-panel__stats-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 16, 25, 0.6);
}

.game-paperdoll-panel__stats-row span {
    color: #9db8c9;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.42px;
    text-transform: uppercase;
}

.game-paperdoll-panel__stats-row strong {
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.45px;
}

.game-paperdoll-panel__stats-row--multiline {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.game-paperdoll-panel__stats-row--multiline strong {
    color: #cde9ff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.2px;
    text-transform: none;
    white-space: pre-wrap;
}

.game-panel--paperdoll .uo-paperdoll-shell {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 0;
}

.game-panel--paperdoll .uo-paperdoll-shell.uo-paperdoll-shell--no-actions {
    grid-template-columns: minmax(0, 1fr);
}

.game-panel--paperdoll .uo-paperdoll-figure {
    --paperdoll-slot-size: 52px;
    --paperdoll-slot-gap: 4px;
    --paperdoll-slot-offset: 8px;
    min-height: 360px;
}

.game-panel--paperdoll .uo-paperdoll-actions {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 116px;
    min-height: 360px;
}

.game-panel--paperdoll .uo-paperdoll-action-button {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 60px;
    border: 1px solid var(--cyber-border);
    border-top-width: 0;
    background:
        linear-gradient(180deg, rgba(15, 28, 41, 0.94) 0%, rgba(8, 18, 28, 0.94) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0) 2px,
            rgba(255, 255, 255, 0) 4px
        );
    color: #d5e1ea;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.game-panel--paperdoll .uo-paperdoll-action-button:first-child {
    border-top-width: 1px;
}

.game-panel--paperdoll .uo-paperdoll-action-button:hover {
    background:
        linear-gradient(180deg, rgba(255, 46, 122, 0.22) 0%, rgba(255, 46, 122, 0.12) 100%),
        linear-gradient(180deg, rgba(15, 28, 41, 0.94) 0%, rgba(8, 18, 28, 0.94) 100%);
    color: #f7faff;
}

.game-panel--paperdoll .uo-paperdoll-action-button:focus {
    outline: none;
}

.game-panel--paperdoll .uo-paperdoll-action-button:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(252, 238, 10, 0.85), 0 0 0 1px rgba(252, 238, 10, 0.45);
}

.game-panel--paperdoll .uo-paperdoll-action-button--mode-war,
.game-panel--paperdoll .uo-paperdoll-action-button--mode-war:hover {
    background:
        linear-gradient(180deg, rgba(170, 22, 44, 0.88) 0%, rgba(122, 14, 31, 0.9) 100%),
        linear-gradient(180deg, rgba(24, 9, 12, 0.95) 0%, rgba(16, 6, 9, 0.95) 100%);
    color: #fff0f3;
    box-shadow: inset 0 0 0 1px rgba(255, 118, 142, 0.6);
}

.game-panel--paperdoll .uo-paperdoll-action-button--mode-peace,
.game-panel--paperdoll .uo-paperdoll-action-button--mode-peace:hover {
    background:
        linear-gradient(180deg, rgba(28, 143, 78, 0.9) 0%, rgba(18, 98, 54, 0.92) 100%),
        linear-gradient(180deg, rgba(10, 31, 20, 0.95) 0%, rgba(7, 22, 14, 0.95) 100%);
    color: #eafff2;
    box-shadow: inset 0 0 0 1px rgba(120, 255, 180, 0.46);
}

.game-panel--paperdoll .uo-paperdoll-avatar {
    top: 72px;
    width: 108px;
    height: 250px;
}

.game-panel--paperdoll .uo-paperdoll-avatar::before {
    top: -49px;
    width: 64px;
    height: 64px;
}

.game-panel--paperdoll .uo-paperdoll-slot {
    width: var(--paperdoll-slot-size);
    height: var(--paperdoll-slot-size);
    font-size: 9px;
}

.game-panel--paperdoll .uo-paperdoll-panel h3 {
    font-size: 24px;
}

.game-panel--paperdoll .uo-paperdoll-panel p {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 12px;
}

.game-panel--paperdoll .uo-paperdoll-meta__row {
    min-height: 34px;
    padding: 0 9px;
}

.game-panel--paperdoll .uo-paperdoll-meta__row span {
    font-size: 11px;
}

.game-panel--paperdoll .uo-paperdoll-meta__row strong {
    font-size: 13px;
}

.game-panel--minimap {
    display: flex;
    flex-direction: column;
    width: 264px;
}

.game-panel--minimap .game-panel__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.game-panel--minimap .uo-minimap-canvas {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    min-height: 204px;
}

.game-panel--minimap .uo-minimap-controls {
    top: 8px;
    right: 8px;
}

.game-panel--minimap .uo-minimap-control {
    width: 30px;
    height: 30px;
}

.game-panel--minimap .uo-minimap-overlay {
    inset: 8px;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

.game-panel--minimap .uo-minimap-overlay span {
    font-size: 10px;
    letter-spacing: 0.5px;
}

.game-panel--debug {
    width: 520px;
    min-width: 420px;
    height: 312px;
}

.game-panel--debug .game-panel__body {
    height: calc(100% - 34px);
    box-sizing: border-box;
}

.game-panel--settings {
    width: 540px;
    min-width: 420px;
    height: 332px;
}

.game-panel--settings .game-panel__body {
    height: calc(100% - 34px);
    box-sizing: border-box;
}

.game-settings-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    height: 100%;
}

.game-settings-panel__tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.game-settings-panel__tab {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #c4d4e0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-settings-panel__tab:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.game-settings-panel__tab--active {
    border-color: rgba(255, 46, 122, 0.72);
    background: rgba(255, 46, 122, 0.2);
    color: #fff4f9;
}

.game-settings-panel__layout {
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.74);
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
}

.game-settings-panel__layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.game-settings-panel__subtabs {
    margin: 0;
    padding: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
}

.game-panel--settings .game-settings-panel__subtab {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: var(--cyber-grid-tile-size, 36px);
    border: 1px solid var(--cyber-border);
    border-top-width: 0;
    background:
        linear-gradient(180deg, rgba(15, 28, 41, 0.94) 0%, rgba(8, 18, 28, 0.94) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0) 2px,
            rgba(255, 255, 255, 0) 4px
        );
    color: #d5e1ea;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-panel--settings .game-settings-panel__subtab:first-child {
    border-top-width: 1px;
}

.game-panel--settings .game-settings-panel__subtab:hover {
    background:
        linear-gradient(180deg, rgba(255, 46, 122, 0.22) 0%, rgba(255, 46, 122, 0.12) 100%),
        linear-gradient(180deg, rgba(15, 28, 41, 0.94) 0%, rgba(8, 18, 28, 0.94) 100%);
    color: #f7faff;
}

.game-panel--settings .game-settings-panel__subtab--active {
    border-color: rgba(255, 46, 122, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 46, 122, 0.34) 0%, rgba(255, 46, 122, 0.18) 100%),
        linear-gradient(180deg, rgba(15, 28, 41, 0.94) 0%, rgba(8, 18, 28, 0.94) 100%);
    color: #fff4f9;
}

.game-settings-panel__content {
    min-height: 0;
    padding: 12px;
    overflow: auto;
    color: #bcd9ee;
    display: grid;
    align-content: start;
    gap: 8px;
}

.game-settings-panel__content h3 {
    margin: 0;
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-settings-panel__content p {
    margin: 0;
    color: #9db8c9;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.game-settings-group {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 16, 25, 0.6);
}

.game-settings-label {
    margin: 0;
    color: #d4e8f6;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.game-settings-options {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.game-settings-option {
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #d5e1ea;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.game-settings-option:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.game-settings-option--active {
    border-color: rgba(255, 46, 122, 0.74);
    background: rgba(255, 46, 122, 0.22);
    color: #fff4f9;
}

.game-settings-help {
    margin: 0;
    color: #9db8c9;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    line-height: 1.35;
}

.game-settings-actions {
    display: flex;
    justify-content: flex-start;
}

.game-settings-apply {
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(252, 238, 10, 0.62);
    background: linear-gradient(180deg, rgba(40, 35, 7, 0.86) 0%, rgba(24, 20, 4, 0.9) 100%);
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-settings-apply:hover {
    border-color: rgba(252, 238, 10, 0.9);
    color: #fff7a8;
    box-shadow: inset 0 0 0 1px rgba(252, 238, 10, 0.2);
}

.game-settings-status {
    margin: 0;
    color: #87b5cf;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    line-height: 1.35;
}

.game-settings-hotkeys {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 14, 22, 0.72);
    display: grid;
}

.game-settings-hotkeys__row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-settings-hotkeys__row:last-child {
    border-bottom: 0;
}

.game-settings-hotkeys__row--header {
    background: rgba(255, 46, 122, 0.16);
}

.game-settings-hotkeys__cell {
    min-height: 26px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    color: #bed6e8;
    font-size: 11px;
    line-height: 1.2;
}

.game-settings-hotkeys__cell--chord {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.game-settings-hotkeys__row--header .game-settings-hotkeys__cell {
    color: #fff4f9;
    font-family: "BlenderProUnified", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.game-debug-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    height: 100%;
}

.game-debug-panel__tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.game-debug-panel__tab {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #c4d4e0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-debug-panel__tab:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.game-debug-panel__tab--active {
    border-color: rgba(255, 46, 122, 0.72);
    background: rgba(255, 46, 122, 0.2);
    color: #fff4f9;
}

.game-debug-panel__metrics {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.74);
    overflow-y: auto;
}

.game-debug-panel__metric {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 8px;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-debug-panel__metric:first-child {
    border-top: 0;
}

.game-debug-panel__metric:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.game-debug-panel__metric-label {
    color: #9cb2c3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-debug-panel__metric-value {
    color: #e1ebf3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.1px;
    overflow-wrap: anywhere;
}

.game-debug-panel__packets {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.74);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.game-debug-panel__packet-rows {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.game-debug-panel__packet-head,
.game-debug-panel__packet-row {
    display: grid;
    grid-template-columns: 108px 72px minmax(156px, 1fr) 60px;
    gap: 8px;
    align-items: center;
    min-width: 460px;
    padding: 0 10px;
}

.game-debug-panel__packet-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 25, 36, 0.96);
    color: #9cb2c3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-debug-panel__packet-row {
    min-height: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbe6ef;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.game-debug-panel__packet-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.game-debug-panel__empty {
    margin: 10px;
    color: #95abc0;
    font-size: 12px;
    font-weight: 700;
}

.home-hero__panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 12, 20, 0.74);
    padding: 32px;
}

.home-hero__kicker {
    margin: 0 0 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-size: 12px;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0;
    color: var(--heading);
    font-family: "Spectral SC", serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.08;
}

.home-hero p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.home-hero__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    text-transform: uppercase;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.48px;
}

.button-primary {
    background: var(--accent);
    color: #04121b;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d6e0e8;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.home-cards {
    margin-top: 20px;
}

.characters-roster .site-container {
    max-width: 1080px;
}

.characters-roster__panel {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(3, 12, 20, 0.78);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.34);
    padding: 34px 36px;
}

.characters-roster__header {
    margin: 0 0 22px;
    text-align: center;
}

.characters-roster__kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.characters-roster__title {
    margin: 0;
    color: var(--heading);
    font-family: "Spectral SC", serif;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
}

.characters-roster__subtitle {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.characters-roster__actions {
    margin: 0 0 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.characters-roster__head,
.characters-roster__row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 84px;
    align-items: center;
    gap: 12px;
}

.characters-roster__head {
    padding: 0 14px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #9cb2c3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.characters-roster__list {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 10, 17, 0.72);
}

.characters-roster__row {
    min-height: 58px;
    padding: 0 14px;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.characters-roster__row:first-child {
    border-top: 0;
}

.characters-roster__row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.characters-roster__row:focus {
    outline: none;
}

.characters-roster__row:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(47, 171, 255, 0.5);
}

.characters-roster__row--selected {
    background: linear-gradient(90deg, rgba(16, 45, 70, 0.75) 0%, rgba(8, 24, 38, 0.75) 100%);
    box-shadow: inset 2px 0 0 #2fabff;
}

.characters-roster__footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.characters-roster__create,
.characters-roster__play {
    min-width: 220px;
}

.characters-roster__create {
    color: #d6e0e8;
}

.characters-roster__play:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #8ea0af;
    cursor: not-allowed;
}

.characters-roster__play:disabled:hover {
    background: rgba(255, 255, 255, 0.08);
}

.characters-roster__name {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.1;
}

.characters-roster__class {
    color: #d5e1ea;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.characters-roster__age {
    text-align: right;
    color: #d5e1ea;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.uo-create-character-modal .modal-dialog {
    max-width: 580px;
}

.uo-create-character-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 27, 0.96) 0%, rgba(3, 12, 20, 0.96) 100%),
        radial-gradient(circle at top, rgba(36, 77, 111, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 36px 56px rgba(0, 0, 0, 0.62);
}

.uo-create-character-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.9) 0%, rgba(8, 20, 31, 0.9) 100%);
}

.uo-create-character-modal .modal-title {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.uo-create-character-modal .btn-close {
    filter: invert(87%) sepia(6%) saturate(372%) hue-rotate(168deg) brightness(88%) contrast(90%);
}

.uo-create-character-modal__body {
    padding: 16px;
}

.uo-create-character-form {
    display: grid;
    gap: 12px;
}

.uo-create-character-form__row {
    display: grid;
    gap: 6px;
}

.uo-create-character-form__row label {
    color: #d6e0e8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.uo-create-character-form__input,
.uo-create-character-form__select {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 0 12px;
    border-radius: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 14px;
    letter-spacing: -0.25px;
}

.uo-create-character-form__select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #9cb2c3 50%),
        linear-gradient(135deg, #9cb2c3 50%, transparent 50%);
    background-position:
        calc(100% - 14px) calc(50% - 1px),
        calc(100% - 9px) calc(50% - 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.uo-create-character-form__input:focus,
.uo-create-character-form__select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.uo-create-character-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(6, 17, 27, 0.85);
}

.uo-create-character-modal .btn {
    min-width: 126px;
    border-radius: 0;
    border: 1px solid transparent;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.48px;
    text-transform: uppercase;
}

.uo-create-character-modal .btn-primary {
    color: #ca0e09;
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.26);
}

.uo-create-character-modal .btn-primary:hover {
    color: #04121b;
    background: var(--accent);
    border-color: var(--accent);
}

.uo-create-character-modal .btn-secondary {
    color: #d6e0e8;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.uo-create-character-modal .btn-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.uo-skill-modal .modal-dialog {
    max-width: 900px;
}

.uo-skill-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 27, 0.96) 0%, rgba(3, 12, 20, 0.96) 100%),
        radial-gradient(circle at top, rgba(36, 77, 111, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 36px 56px rgba(0, 0, 0, 0.62);
}

.uo-skill-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.9) 0%, rgba(8, 20, 31, 0.9) 100%);
}

.uo-skill-modal .modal-title {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: none;
}

.uo-skill-modal .btn-close {
    filter: invert(87%) sepia(6%) saturate(372%) hue-rotate(168deg) brightness(88%) contrast(90%);
}

.uo-skill-modal__body {
    padding: 14px 16px 8px;
}

.uo-skill-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.86);
    color: #b9c7d3;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.4px;
}

.uo-skill-table {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 6, 6, 0.72);
}

.uo-skill-table__head,
.uo-skill-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px 204px;
    align-items: center;
    gap: 12px;
}

.uo-skill-table__head {
    min-height: 34px;
    padding: 0 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 25, 36, 0.75);
    color: #9cb2c3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.uo-skill-table__row {
    min-height: 43px;
    padding: 0 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.uo-skill-table__row:first-of-type {
    border-top: 0;
}

.uo-skill-table__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.uo-skill-table__skill {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.uo-skill-table__value {
    color: #d5e1ea;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.uo-skill-table__lock {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.uo-lock-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.uo-lock-pill {
    width: 58px;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(20, 39, 54, 0.92) 0%, rgba(10, 25, 37, 0.92) 100%);
    color: #b9c7d3;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.uo-lock-pill:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.uo-lock-input:checked + .uo-lock-pill {
    color: #04121b;
    border-color: #ffaa5f;
    background: linear-gradient(180deg, #ffbe84 0%, #ffaa5f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.uo-skill-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(6, 17, 27, 0.85);
}

.uo-status-modal .modal-dialog {
    max-width: 980px;
}

.uo-status-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 27, 0.96) 0%, rgba(3, 12, 20, 0.96) 100%),
        radial-gradient(circle at top, rgba(36, 77, 111, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 36px 56px rgba(0, 0, 0, 0.62);
}

.uo-status-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.9) 0%, rgba(8, 20, 31, 0.9) 100%);
}

.uo-status-modal .modal-title {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.uo-status-modal .btn-close {
    filter: invert(87%) sepia(6%) saturate(372%) hue-rotate(168deg) brightness(88%) contrast(90%);
}

.uo-status-modal__body {
    padding: 14px 16px 8px;
}

.uo-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.uo-status-column {
    min-width: 0;
}

.uo-status-column + .uo-status-column {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 14px;
}

.uo-status-column__label {
    margin: 0 0 8px;
    color: #9cb2c3;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.uo-status-attr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px 32px;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.uo-status-attr:first-of-type {
    border-top: 0;
}

.uo-status-attr__name {
    color: #d5e1ea;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.25px;
}

.uo-status-attr__value {
    color: #ffffff;
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.uo-status-lock-toggle {
    width: 28px;
    min-width: 28px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(20, 39, 54, 0.92) 0%, rgba(10, 25, 37, 0.92) 100%);
    color: #9cb2c3;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.uo-status-lock-toggle:hover {
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.uo-status-lock-toggle:focus {
    outline: none;
}

.uo-status-lock-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(47, 171, 255, 0.3);
}

.uo-status-lock-toggle [class^="icon-"]::before,
.uo-status-lock-toggle [class*=" icon-"]::before {
    margin: 0;
    width: auto;
    font-size: 12px;
}

.uo-status-lock-toggle--up {
    color: #7edc99;
}

.uo-status-lock-toggle--locked {
    color: #ffaa5f;
}

.uo-status-lock-toggle--down {
    color: #ff8980;
}

.uo-status-vital + .uo-status-vital {
    margin-top: 10px;
}

.uo-status-vital__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d5e1ea;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.uo-status-vital__track {
    height: 9px;
    margin-top: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.uo-status-vital__fill {
    display: block;
    height: 100%;
}

.uo-status-vital__fill--hits {
    background: linear-gradient(90deg, #c71836 0%, #ff3763 100%);
}

.uo-status-vital__fill--stam {
    background: linear-gradient(90deg, #3a9a18 0%, #79e53b 100%);
}

.uo-status-vital__fill--mana {
    background: linear-gradient(90deg, #1f63cc 0%, #4aa0ff 100%);
}

.uo-status-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 33px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #d5e1ea;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.uo-status-detail:first-of-type {
    border-top: 0;
}

.uo-status-detail__icon {
    color: #ffaa5f;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    line-height: 1;
}

.uo-status-detail__icon::before {
    margin: 0;
    width: auto;
}

.uo-status-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(6, 17, 27, 0.85);
}

.uo-inventory-modal .modal-dialog {
    max-width: 390px;
}

.uo-inventory-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 27, 0.96) 0%, rgba(3, 12, 20, 0.96) 100%),
        radial-gradient(circle at top, rgba(36, 77, 111, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 36px 56px rgba(0, 0, 0, 0.62);
}

.uo-inventory-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.9) 0%, rgba(8, 20, 31, 0.9) 100%);
}

.uo-inventory-modal .modal-title {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.uo-inventory-modal .btn-close {
    filter: invert(87%) sepia(6%) saturate(372%) hue-rotate(168deg) brightness(88%) contrast(90%);
}

.uo-inventory-modal__body {
    padding: 16px;
}

.uo-inventory-grid-wrap {
    --inventory-slot-size: 43.2px;
    --inventory-slot-gap: 6px;
    --inventory-visible-rows: 6;
    max-height: calc(
        (var(--inventory-slot-size) * var(--inventory-visible-rows)) +
        (var(--inventory-slot-gap) * (var(--inventory-visible-rows) - 1))
    );
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2px;
}

.uo-inventory-grid {
    display: grid;
    grid-template-columns: repeat(6, var(--inventory-slot-size));
    grid-auto-rows: var(--inventory-slot-size);
    gap: var(--inventory-slot-gap);
    width: max-content;
    margin: 0 auto;
}

.uo-inventory-slot {
    width: var(--inventory-slot-size);
    height: var(--inventory-slot-size);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(18, 37, 53, 0.9) 0%, rgba(9, 23, 35, 0.9) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 4px,
            rgba(255, 255, 255, 0) 4px,
            rgba(255, 255, 255, 0) 8px
        );
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    padding: 0;
}

.uo-inventory-slot__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
}

.uo-inventory-slot__label {
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 1px;
    color: rgba(230, 238, 246, 0.94);
    font-size: 9px;
    line-height: 1.1;
    text-align: right;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.uo-inventory-slot:hover {
    border-color: rgba(47, 171, 255, 0.65);
    background:
        linear-gradient(180deg, rgba(28, 52, 72, 0.95) 0%, rgba(13, 31, 46, 0.95) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 4px,
            rgba(255, 255, 255, 0) 4px,
            rgba(255, 255, 255, 0) 8px
        );
}

.uo-inventory-slot:focus {
    outline: none;
}

.uo-inventory-slot:focus-visible {
    border-color: rgba(47, 171, 255, 0.82);
    box-shadow: 0 0 0 2px rgba(47, 171, 255, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.uo-inventory-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(6, 17, 27, 0.85);
}

.uo-paperdoll-modal .modal-dialog {
    max-width: 980px;
}

.uo-paperdoll-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 27, 0.96) 0%, rgba(3, 12, 20, 0.96) 100%),
        radial-gradient(circle at top, rgba(36, 77, 111, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 36px 56px rgba(0, 0, 0, 0.62);
}

.uo-paperdoll-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.9) 0%, rgba(8, 20, 31, 0.9) 100%);
}

.uo-paperdoll-modal .modal-title {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.uo-paperdoll-modal .btn-close {
    filter: invert(87%) sepia(6%) saturate(372%) hue-rotate(168deg) brightness(88%) contrast(90%);
}

.uo-paperdoll-modal__body {
    padding: 16px;
}

.uo-paperdoll-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.uo-paperdoll-figure {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 50% 18%, rgba(50, 89, 121, 0.2) 0%, rgba(0, 0, 0, 0) 50%),
        linear-gradient(180deg, rgba(6, 17, 27, 0.84) 0%, rgba(3, 12, 20, 0.84) 100%);
}

.uo-paperdoll-avatar {
    position: absolute;
    left: 50%;
    top: 84px;
    width: 126px;
    height: 308px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 64px 64px 36px 36px;
    background: linear-gradient(180deg, rgba(38, 64, 86, 0.72) 0%, rgba(18, 35, 52, 0.72) 100%);
}

.uo-paperdoll-avatar::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -58px;
    width: 74px;
    height: 74px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: linear-gradient(180deg, rgba(46, 74, 97, 0.72) 0%, rgba(18, 35, 52, 0.72) 100%);
}

.uo-paperdoll-slot {
    position: absolute;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 4px,
            rgba(255, 255, 255, 0) 4px,
            rgba(255, 255, 255, 0) 8px
        ),
        linear-gradient(180deg, rgb(18, 37, 53) 0%, rgb(9, 23, 35) 100%);
    background-color: rgb(9, 23, 35);
    background-clip: padding-box;
    isolation: isolate;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    color: #9cb2c3;
    font-family: "Josefin Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 0;
}

.uo-paperdoll-slot span {
    display: block;
}

.uo-paperdoll-slot__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
}

.uo-paperdoll-slot__label {
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 1px;
    z-index: 2;
    padding: 2px 3px 1px;
    border-top: 1px solid rgba(170, 180, 196, 0.45);
    background: linear-gradient(180deg, rgba(7, 16, 24, 0.9) 0%, rgba(4, 10, 16, 0.96) 100%);
    color: #c8d8e6;
    font-size: 8px;
    line-height: 1.1;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.uo-paperdoll-slot:hover {
    border-color: rgba(47, 171, 255, 0.65);
    color: #ffffff;
}

.uo-paperdoll-slot:focus {
    outline: none;
}

.uo-paperdoll-slot:focus-visible {
    box-shadow: 0 0 0 2px rgba(47, 171, 255, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.uo-paperdoll-slot--helmet {
    top: var(--paperdoll-slot-offset);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.uo-paperdoll-slot--earrings {
    top: auto;
    right: auto;
    left: calc(4% + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 3);
    bottom: var(--paperdoll-slot-offset);
}

.uo-paperdoll-slot--necklace {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 1);
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
}

.uo-paperdoll-slot--ring {
    top: auto;
    left: calc(4% + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 1);
    right: auto;
    bottom: var(--paperdoll-slot-offset);
    transform: none;
}

.uo-paperdoll-slot--bracelet {
    top: auto;
    left: calc(4% + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 2);
    right: auto;
    bottom: var(--paperdoll-slot-offset);
    transform: none;
}

.uo-paperdoll-slot--tunic {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 2);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.uo-paperdoll-slot--onehanded {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 3);
    left: 4%;
}

.uo-paperdoll-slot--twohanded {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 4);
    left: 4%;
}

.uo-paperdoll-slot--talisman {
    top: auto;
    left: 4%;
    right: auto;
    bottom: var(--paperdoll-slot-offset);
}

.uo-paperdoll-slot--robe {
    top: var(--paperdoll-slot-offset);
    right: 4%;
}

.uo-paperdoll-slot--gloves {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 4);
    right: 4%;
}

.uo-paperdoll-slot--pants {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 3);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.uo-paperdoll-slot--arms {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 3);
    right: 4%;
}

.uo-paperdoll-slot--cloak {
    top: var(--paperdoll-slot-offset);
    left: 4%;
    right: auto;
}

.uo-paperdoll-slot--shoes {
    top: calc(var(--paperdoll-slot-offset) + (var(--paperdoll-slot-size) + var(--paperdoll-slot-gap)) * 4);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.uo-paperdoll-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 10, 17, 0.72);
    padding: 14px;
}

.uo-paperdoll-panel h3 {
    margin: 0;
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.uo-paperdoll-panel p {
    margin: 8px 0 14px;
    color: #9cb2c3;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.uo-paperdoll-meta {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.uo-paperdoll-meta__row {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.uo-paperdoll-meta__row:first-child {
    border-top: 0;
}

.uo-paperdoll-meta__row span {
    color: #9cb2c3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.uo-paperdoll-meta__row strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.uo-paperdoll-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(6, 17, 27, 0.85);
}

.uo-minimap-modal .modal-dialog {
    max-width: 760px;
}

.uo-minimap-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 27, 0.96) 0%, rgba(3, 12, 20, 0.96) 100%),
        radial-gradient(circle at top, rgba(36, 77, 111, 0.2) 0%, rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 36px 56px rgba(0, 0, 0, 0.62);
}

.uo-minimap-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.9) 0%, rgba(8, 20, 31, 0.9) 100%);
}

.uo-minimap-modal .modal-title {
    color: #ffffff;
    font-family: "Spectral SC", serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.uo-minimap-modal .btn-close {
    filter: invert(87%) sepia(6%) saturate(372%) hue-rotate(168deg) brightness(88%) contrast(90%);
}

.uo-minimap-modal__body {
    padding: 16px;
}

.uo-minimap-canvas {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 24% 28%, rgba(58, 115, 80, 0.52) 0%, rgba(0, 0, 0, 0) 26%),
        radial-gradient(circle at 72% 34%, rgba(86, 109, 55, 0.42) 0%, rgba(0, 0, 0, 0) 24%),
        radial-gradient(circle at 48% 70%, rgba(46, 91, 123, 0.46) 0%, rgba(0, 0, 0, 0) 28%),
        linear-gradient(180deg, rgba(17, 38, 52, 0.95) 0%, rgba(12, 29, 41, 0.95) 100%);
}

.uo-minimap-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, rgba(0, 0, 0, 0) 1px 34px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, rgba(0, 0, 0, 0) 1px 34px);
    pointer-events: none;
}

.uo-minimap-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
        linear-gradient(325deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%);
    opacity: 0.3;
    pointer-events: none;
}

.uo-minimap-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, rgba(4, 9, 15, 0.78) 0%, rgba(4, 9, 15, 0.86) 100%);
    pointer-events: none;
}

.uo-minimap-canvas--loading .uo-minimap-loading {
    display: flex;
}

.uo-minimap-canvas--loading .uo-minimap-canvas__surface,
.uo-minimap-canvas--loading .uo-minimap-overlay {
    opacity: 0;
}

.uo-minimap-canvas__surface,
.uo-minimap-overlay {
    transition: opacity 110ms linear;
}

.uo-minimap-loading__spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(252, 238, 10, 0.34);
    border-top-color: rgba(252, 238, 10, 1);
    animation: uo-minimap-loading-spin 0.85s linear infinite;
}

.uo-minimap-loading__text {
    color: #fcee0a;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

@keyframes uo-minimap-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.uo-minimap-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.uo-minimap-marker--player {
    left: 48%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ff6f63;
}

.uo-minimap-marker--party {
    left: 39%;
    top: 43%;
    background: #7edc99;
}

.uo-minimap-marker--waypoint {
    left: 68%;
    top: 61%;
    background: #ffcf71;
}

.uo-minimap-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}

.uo-minimap-control {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: linear-gradient(180deg, rgba(22, 43, 60, 0.94) 0%, rgba(9, 22, 34, 0.94) 100%);
    color: #d5e1ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.uo-minimap-control:hover {
    border-color: rgba(47, 171, 255, 0.65);
    color: #ffffff;
}

.uo-minimap-control:focus {
    outline: none;
}

.uo-minimap-control:focus-visible {
    box-shadow: 0 0 0 2px rgba(47, 171, 255, 0.3);
}

.uo-minimap-control [class^="icon-"]::before,
.uo-minimap-control [class*=" icon-"]::before {
    margin: 0;
    width: auto;
    font-size: 14px;
    line-height: 1;
}

.uo-minimap-overlay {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(7, 21, 33, 0.9) 0%, rgba(4, 13, 22, 0.9) 100%);
    pointer-events: none;
    z-index: 4;
}

.uo-minimap-overlay span {
    color: #d5e1ea;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    white-space: nowrap;
}

.uo-minimap-overlay__place {
    color: #eff7ff;
}

.uo-minimap-overlay__place--wide {
    grid-column: 1 / -1;
}

.uo-minimap-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(6, 17, 27, 0.85);
}

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

.home-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 10, 17, 0.72);
    padding: 20px;
}

.home-card h3 {
    margin: 0;
    color: var(--heading);
    font-family: "Spectral SC", serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.home-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.page-login .site-container {
    max-width: 1240px;
}

.account-auth {
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
    box-shadow: 0 38px 72px rgba(0, 0, 0, 0.42);
    padding: 40px 42px;
    max-width: 1014px;
    margin: 0 auto;
}

.account-auth__header {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 860px;
}

.account-auth__kicker {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 23px;
    letter-spacing: 2.64px;
    text-transform: uppercase;
}

.account-auth__title {
    margin: 0;
    color: var(--heading);
    font-family: "Spectral SC", serif;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
}

.account-auth__subtitle {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 26.4px;
}

.account-auth__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.account-card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    padding: 30px;
}

.account-card__title {
    margin: 0 0 6px;
    color: var(--heading);
    font-family: "Spectral SC", serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 36.4px;
}

.account-card__desc {
    margin: 0 0 18px;
    color: #9cb2c3;
    font-size: 15px;
    line-height: 21.75px;
}

.account-auth label {
    color: #d6e0e8;
    font-size: 13px;
    font-weight: 500;
    line-height: 23px;
    margin-bottom: 6px;
    display: inline-block;
}

.account-auth .required {
    color: var(--accent);
}

.account-auth .woocommerce-form-row {
    margin: 0 0 14px;
}

.account-auth .input-text {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 0 14px;
    border-radius: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 14px;
    letter-spacing: -0.5px;
}

.account-auth .input-text::placeholder {
    color: rgba(221, 232, 240, 0.62);
}

.account-auth .input-text:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.account-auth__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 16px;
}

.account-auth .woocommerce-form__label {
    color: #b9c7d3;
    font-size: 12px;
    line-height: 1;
    margin: 0;
}

.account-auth .woocommerce-form__label input {
    margin-right: 6px;
}

.account-card > form > .form-row .woocommerce-form__label {
    line-height: 31px;
}

.account-auth__link {
    color: var(--accent);
    font-size: 13px;
    line-height: 1;
}

.account-auth .form-row:not(.woocommerce-form-row) {
    margin: 0 0 23.8px;
}

.account-auth .button {
    width: 100%;
    min-height: 46px;
    border: 0;
    background: #ffffff;
    color: #ca0e09;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    padding: 7.2px 24px 4.8px;
    cursor: pointer;
}

.account-auth .button:hover {
    background: var(--accent);
    color: #04121b;
}

.account-auth__fineprint {
    margin: 12px 0 0;
    color: #8ea4b5;
    font-size: 12px;
    line-height: 19.2px;
}

.site-footer__socials {
    border-top: 1px solid #1c2229;
    padding-top: 60.35px;
    padding-bottom: 28.9px;
    background: #061217;
    line-height: 30.3569px;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.social-item {
    position: relative;
    min-height: 123px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0 8px;
}

.social-item + .social-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(81, 93, 108, 0.45);
}

.social-item__icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #9cabb9;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.social-item__icon::before {
    margin: 0;
    width: auto;
    line-height: 1;
    font-size: 18px;
}

.social-item h4 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20.8px;
    letter-spacing: -0.6px;
}

.social-item p {
    margin: 0;
    color: #9cabb9;
    font-size: 16px;
    font-weight: 700;
    line-height: 25.6px;
    letter-spacing: -0.6px;
}

.site-footer__copyright {
    border-top: 1px solid #1c2229;
    padding-top: 40px;
    padding-bottom: 40px;
    background: #030506;
    line-height: 30.3569px;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: #9cabb9;
    font-size: 12px;
    line-height: 19.2px;
}

#blazor-error-ui {
    display: none !important;
}

.site-tools {
    position: absolute;
    right: 10px;
    top: 610px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-tools__item {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #eb6a61;
    border: 1px solid #dce3e8;
    font-size: 0;
    line-height: 1;
}

.site-tools__item::before {
    margin: 0;
    width: auto;
    line-height: 1;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .site-header__row {
        margin: 0;
        min-height: auto;
        flex-direction: column;
        padding: 12px 10px;
    }

    .site-header__main {
        width: 100%;
        min-height: auto;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        height: 56px;
        min-height: 56px;
        margin: 0 0 10px;
    }

    .site-logo img {
        width: auto;
        height: 100%;
    }

    .site-nav,
    .site-header__actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
        min-height: auto;
        padding: 0;
    }

    .site-header__actions-inner {
        width: auto;
        margin: 0;
    }

    .site-header__account-dropdown {
        width: 38px;
        min-width: 38px;
    }

    .site-header__account-toggle {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
        border: 1px solid rgba(81, 93, 108, 0.45);
    }

    .site-nav__link {
        padding: 10px 10px;
    }

    .home-cards__grid,
    .account-auth__grid {
        grid-template-columns: 1fr;
    }

    .characters-roster__panel {
        padding: 22px;
    }

    .characters-roster__title {
        font-size: 40px;
    }

    .characters-roster__head,
    .characters-roster__row {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 66px;
    }

    .characters-roster__name {
        font-size: 20px;
    }

    .uo-skill-modal .modal-dialog {
        max-width: calc(100% - 28px);
    }

    .uo-create-character-modal .modal-dialog {
        max-width: calc(100% - 28px);
    }

    .uo-status-modal .modal-dialog {
        max-width: calc(100% - 28px);
    }

    .uo-inventory-modal .modal-dialog {
        max-width: calc(100% - 28px);
    }

    .uo-paperdoll-modal .modal-dialog {
        max-width: calc(100% - 28px);
    }

    .uo-minimap-modal .modal-dialog {
        max-width: calc(100% - 28px);
    }

    .uo-skill-table__head,
    .uo-skill-table__row {
        grid-template-columns: minmax(0, 1fr) 88px 188px;
    }

    .uo-skill-table__skill {
        font-size: 27px;
    }

    .uo-lock-pill {
        width: 54px;
    }

    .uo-status-grid {
        grid-template-columns: 1fr;
    }

    .uo-status-column + .uo-status-column {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding-left: 0;
        padding-top: 10px;
    }

    .uo-paperdoll-shell {
        grid-template-columns: 1fr;
    }

    .uo-paperdoll-figure {
        min-height: 480px;
    }

    .game-panel {
        max-width: calc(100vw - 14px);
    }

    .game-panel--paperdoll .uo-paperdoll-shell {
        grid-template-columns: 1fr;
    }

    .game-panel--paperdoll {
        min-width: 0;
    }

    .game-panel--paperdoll .uo-paperdoll-actions {
        width: 100%;
        min-height: 0;
    }

    .game-panel--paperdoll .uo-paperdoll-action-button {
        min-height: 44px;
    }

    .game-panel--paperdoll .uo-paperdoll-figure {
        min-height: 330px;
    }

    .game-panel--settings {
        min-width: 0;
        width: min(540px, calc(100vw - 14px));
    }

    .game-panel--settings .game-settings-panel__layout {
        grid-template-columns: 1fr;
    }

    .game-panel--settings .game-settings-panel__subtabs {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        flex-direction: row;
        overflow-x: auto;
    }

    .game-panel--settings .game-settings-panel__subtab {
        min-height: 44px;
        min-width: 120px;
        border-top-width: 1px;
        border-left-width: 0;
        flex: 0 0 auto;
    }

    .game-panel--settings .game-settings-panel__subtab:first-child {
        border-left-width: 1px;
    }

    .account-auth {
        padding: 24px;
    }

    .account-auth__title {
        font-size: 32px;
    }

    .account-card {
        padding: 22px;
    }

    .socials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    .social-item + .social-item::before {
        display: none;
    }

    .site-tools {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-container {
        max-width: calc(100% - 20px);
    }

    .site-main {
        padding-top: 36px;
        padding-bottom: 44px;
    }

    .home-hero__panel {
        padding: 24px;
    }

    .characters-roster__panel {
        padding: 16px;
    }

    .characters-roster__title {
        font-size: 34px;
    }

    .characters-roster__head,
    .characters-roster__row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .characters-roster__head {
        display: none;
    }

    .characters-roster__row {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .characters-roster__footer {
        margin-top: 14px;
    }

    .characters-roster__create,
    .characters-roster__play {
        width: 100%;
    }

    .characters-roster__name,
    .characters-roster__class,
    .characters-roster__age {
        text-align: left;
    }

    .characters-roster__class::before {
        content: "Class: ";
        color: #9cb2c3;
    }

    .characters-roster__age::before {
        content: "Age: ";
        color: #9cb2c3;
    }

    .uo-skill-modal .modal-title {
        font-size: 30px;
    }

    .uo-status-modal .modal-title {
        font-size: 30px;
    }

    .uo-paperdoll-modal .modal-title,
    .uo-minimap-modal .modal-title {
        font-size: 30px;
    }

    .uo-skill-modal__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .uo-skill-table__head,
    .uo-skill-table__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .uo-skill-table__head {
        display: none;
    }

    .uo-skill-table__row {
        align-items: start;
    }

    .uo-skill-table__skill {
        font-size: 17px;
    }

    .uo-skill-table__value {
        text-align: left;
        font-size: 15px;
    }

    .uo-skill-table__value::before {
        content: "Value: ";
        color: #9cb2c3;
    }

    .uo-skill-table__lock {
        justify-content: flex-start;
    }

    .uo-lock-pill {
        width: 52px;
        min-height: 25px;
        font-size: 11px;
    }

    .uo-status-attr {
        grid-template-columns: minmax(0, 1fr) 44px 30px;
        gap: 8px;
    }

    .uo-status-attr__name {
        font-size: 13px;
    }

    .uo-status-attr__value {
        font-size: 18px;
    }

    .uo-status-lock-toggle {
        width: 26px;
        min-width: 26px;
        height: 22px;
    }

    .uo-inventory-grid-wrap {
        --inventory-slot-size: 36.8px;
    }

    .uo-paperdoll-figure {
        min-height: 430px;
    }

    .uo-paperdoll-avatar {
        top: 80px;
        width: 108px;
        height: 250px;
    }

    .uo-paperdoll-slot {
        width: 52px;
        height: 52px;
        font-size: 9px;
    }

    .game-panel__titlebar {
        min-height: 30px;
        font-size: 16px;
    }

    .game-panel__body {
        padding: 8px;
    }

    .game-panel--skills {
        width: 340px;
    }

    .game-panel--actionbar .game-panel__body {
        padding: 6px;
    }

    .game-actionbar-grid {
        --action-slot-size: 30.4px;
        --action-slot-gap: 4px;
    }

    .game-actionbar-slot__label {
        font-size: 7px;
    }

    .game-panel--chat {
        width: 340px;
        min-height: 262px;
    }

    .game-skill-panel__head,
    .game-skill-panel__row {
        grid-template-columns: 20px minmax(0, 1fr) 62px 30px;
        gap: 6px;
    }

    .game-skill-panel__head {
        min-height: 26px;
        font-size: 9px;
    }

    .game-skill-panel__rows {
        max-height: 198px;
    }

    .game-chat-panel__messages {
        min-height: 176px;
        max-height: none;
    }

    .game-skill-panel__skill,
    .game-skill-panel__value {
        font-size: 12px;
    }

    .game-chat-panel__line {
        font-size: 12px;
    }

    .game-skill-panel__lock .uo-status-lock-toggle {
        width: 22px;
        min-width: 22px;
        height: 20px;
    }

    .game-panel--inventory .uo-inventory-grid-wrap,
    .game-panel--trade .uo-inventory-grid-wrap {
        --inventory-slot-size: 30.4px;
        --inventory-slot-gap: 5px;
    }

    .game-panel--status .uo-status-grid {
        grid-template-columns: 1fr;
    }

    .game-panel--status .uo-status-column + .uo-status-column {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding-left: 0;
        padding-top: 8px;
    }

    .game-panel--paperdoll .uo-paperdoll-figure {
        --paperdoll-slot-size: 44px;
        min-height: 300px;
    }

    .game-panel--paperdoll .uo-paperdoll-avatar {
        top: 66px;
        width: 98px;
        height: 224px;
    }

    .game-panel--paperdoll .uo-paperdoll-slot {
        font-size: 8px;
    }

    .game-panel--minimap .uo-minimap-canvas {
        min-height: 165px;
    }

    .uo-minimap-overlay {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 5px 6px;
        gap: 3px 6px;
    }

    .uo-minimap-overlay span {
        font-size: 10px;
    }

    .uo-minimap-control {
        width: 30px;
        height: 30px;
    }

    .account-auth {
        padding: 16px;
    }

    .account-card {
        padding: 16px;
    }

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

@font-face {
    font-family: "BlenderProUnified";
    src:
        url("/fonts/BlenderPro-Book-a6763c9a.woff2") format("woff2"),
        url("/fonts/BlenderPro-Book-a7182e33.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "BlenderProUnified";
    src:
        url("/fonts/BlenderPro-Bold-eff48238.woff2") format("woff2"),
        url("/fonts/BlenderPro-Bold-c11a01ca.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "BlenderProUnified";
    src:
        url("/fonts/Refinery-25SemiBold-dac0d12b.woff2") format("woff2"),
        url("/fonts/Refinery-25SemiBold-8a4883af.woff") format("woff");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* Cyberpunk visual direction with yellow + neon red-pink palette. */
:root {
    --site-bg: #07080d;
    --text: #cfd8e8;
    --heading: #f7fbff;
    --muted: #a7b4ca;
    --panel-bg: rgba(8, 10, 16, 0.9);
    --card-bg: rgba(8, 11, 18, 0.86);
    --panel-border: rgba(252, 238, 10, 1);
    --card-border: rgba(252, 238, 10, 1);
    --accent: #fcee0a;
    --accent-hover: #fff45a;
    --menu-link: #d1d9e6;
    --menu-hover: #fcee0a;
    --cyber-cyan: rgba(255, 46, 122, 1);
    --cyber-border: rgba(252, 238, 10, 1);
    --cyber-magenta: #fe1038;
    --cyber-black: #07080d;
    --cyber-dot-size: 1.5px;
    --cyber-dot-spacing: 61px;
    --cyber-dot-color: rgba(255, 46, 122, 0.62);
    --cyber-slot-border: rgba(255, 46, 122, 1);
    --cyber-dot-offset-x: 8px;
    --cyber-dot-offset-y: 18px;
}

html,
body {
    background: var(--cyber-black);
    color: var(--text);
    font-family: "BlenderProUnified", sans-serif;
    letter-spacing: -0.15px;
}

.site-shell {
    background-color: #06070d;
    background-image: radial-gradient(circle, var(--cyber-dot-color) var(--cyber-dot-size), transparent calc(var(--cyber-dot-size) + 0.2px));
    background-size: var(--cyber-dot-spacing) var(--cyber-dot-spacing);
    background-position: var(--cyber-dot-offset-x) var(--cyber-dot-offset-y);
}

.site-header {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.52);
}

.site-header__top {
    background: #fcee0a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.65);
}

.site-logo {
    height: 48px;
    min-height: 48px;
    margin-right: 18px;
}

.site-logo img {
    width: auto;
    height: 100%;
    max-height: 100%;
}

.site-nav__link {
    color: #07080d;
    font-family: "BlenderProUnified", sans-serif;
    font-weight: 700;
    letter-spacing: 1.25px;
}

.site-nav__link:hover,
.site-nav__link.active {
    color: #07080d;
    text-shadow: none;
    opacity: 0.72;
}

.site-header__account-toggle {
    border-left-color: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    background: rgba(255, 46, 122, 0.95);
}

.site-header__account-toggle:hover,
.site-header__account-toggle:focus {
    color: #ffffff;
    background: rgba(255, 79, 157, 0.98);
    opacity: 1;
}

.site-header__account-menu.dropdown-menu {
    border-color: var(--cyber-border);
    background: rgba(7, 9, 16, 0.98);
    box-shadow: 0 24px 38px rgba(0, 0, 0, 0.55);
}

.site-header__account-menu .dropdown-item:hover,
.site-header__account-menu .dropdown-item:focus {
    color: #ffffff;
    background: rgba(255, 46, 122, 0.12);
}

.site-header__logout {
    color: var(--cyber-magenta) !important;
}

.button-primary {
    color: #08090d;
    box-shadow: 0 0 20px rgba(252, 238, 10, 0.22);
}

.button-primary:hover {
    color: #040507;
}

.button,
.button-secondary,
.btn-secondary,
.game-chat-panel__send {
    color: #ffe3f0;
}

.button-primary,
.button-secondary {
    font-family: "BlenderProUnified", sans-serif;
    letter-spacing: 0.95px;
}

.button,
.button-primary,
.button-secondary,
.btn,
.game-chat-panel__send {
    --cyber-button-fill: rgba(255, 46, 122, 0.1);
    --cyber-button-notch: 10px;
    --cyber-button-border: var(--cyber-border);
    --cyber-button-edge: 1px;
    position: relative;
    isolation: isolate;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

.button::before,
.button-primary::before,
.button-secondary::before,
.btn::before,
.game-chat-panel__send::before,
.button::after,
.button-primary::after,
.button-secondary::after,
.btn::after,
.game-chat-panel__send::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    -webkit-clip-path: polygon(
        var(--cyber-button-notch) 0,
        100% 0,
        100% calc(100% - var(--cyber-button-notch)),
        calc(100% - var(--cyber-button-notch)) 100%,
        0 100%,
        0 var(--cyber-button-notch)
    );
    clip-path: polygon(
        var(--cyber-button-notch) 0,
        100% 0,
        100% calc(100% - var(--cyber-button-notch)),
        calc(100% - var(--cyber-button-notch)) 100%,
        0 100%,
        0 var(--cyber-button-notch)
    );
}

.button::before,
.button-primary::before,
.button-secondary::before,
.btn::before,
.game-chat-panel__send::before {
    inset: 0;
    background: var(--cyber-button-border);
}

.button::after,
.button-primary::after,
.button-secondary::after,
.btn::after,
.game-chat-panel__send::after {
    inset: var(--cyber-button-edge);
    background: var(--cyber-button-fill);
}

.game-chat-panel__send {
    --cyber-button-notch: 8px;
    --cyber-button-border: var(--cyber-slot-border);
    --cyber-button-fill: linear-gradient(180deg, rgba(255, 46, 122, 0.96) 0%, rgba(235, 0, 126, 0.96) 100%);
    color: #ffffff;
}

.button-primary {
    --cyber-button-fill: linear-gradient(180deg, #fcee0a 0%, #e1d600 100%);
    --cyber-button-border: #fcee0a;
}

.button-primary:hover {
    --cyber-button-fill: linear-gradient(180deg, #fff45a 0%, #fcee0a 100%);
}

.button-secondary,
.btn-secondary {
    --cyber-button-fill: linear-gradient(180deg, rgba(255, 46, 122, 0.96) 0%, rgba(235, 0, 126, 0.96) 100%);
    --cyber-button-border: #ff2e7a;
    color: #ffffff;
}

.button-secondary:hover,
.btn-secondary:hover {
    --cyber-button-fill: linear-gradient(180deg, rgba(255, 79, 157, 0.98) 0%, rgba(246, 21, 142, 0.98) 100%);
    --cyber-button-border: #ff5da4;
    color: #ffffff;
}

.btn-primary {
    --cyber-button-fill: linear-gradient(180deg, rgba(255, 46, 122, 0.96) 0%, rgba(235, 0, 126, 0.96) 100%);
    --cyber-button-border: var(--cyber-slot-border);
    color: #ffffff;
}

.btn-primary:hover {
    --cyber-button-fill: linear-gradient(180deg, rgba(255, 79, 157, 0.98) 0%, rgba(246, 21, 142, 0.98) 100%);
    --cyber-button-border: #ff5da4;
    color: #ffffff;
}

.button:hover,
.game-chat-panel__send:hover {
    --cyber-button-fill: rgba(255, 46, 122, 0.2);
    color: #ffffff;
}

.game-chat-panel__send:hover {
    --cyber-button-border: #ff5da4;
    --cyber-button-fill: linear-gradient(180deg, rgba(255, 79, 157, 0.98) 0%, rgba(246, 21, 142, 0.98) 100%);
}

.home-hero__panel,
.home-card,
.characters-roster__panel,
.account-auth,
.account-card,
.game-panel,
.uo-create-character-modal .modal-content,
.uo-skill-modal .modal-content,
.uo-status-modal .modal-content,
.uo-inventory-modal .modal-content,
.uo-paperdoll-modal .modal-content,
.uo-minimap-modal .modal-content {
    border-color: var(--cyber-border);
    background:
        linear-gradient(160deg, rgba(10, 13, 20, 0.95) 0%, rgba(7, 9, 15, 0.95) 100%);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(252, 238, 10, 0.28);
}

.home-hero h1,
.characters-roster__title,
.account-auth__title,
.account-card__title,
.modal-title,
.characters-roster__name {
    font-family: "BlenderProUnified", sans-serif;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.characters-roster__name {
    font-size: 20px;
}

.home-hero__kicker,
.account-auth__kicker,
.game-panel__titlebar,
.game-skill-panel__total {
    color: var(--cyber-cyan);
}

.characters-roster__row:hover {
    background: rgba(255, 46, 122, 0.1);
}

.characters-roster__row--selected {
    background: linear-gradient(90deg, rgba(255, 46, 122, 0.25) 0%, rgba(252, 238, 10, 0.08) 100%);
    box-shadow:
        inset 3px 0 0 var(--accent),
        0 0 18px rgba(255, 46, 122, 0.2);
}

.game-panel__titlebar {
    min-height: 26px;
    border-bottom-color: rgba(0, 0, 0, 0.65);
    background: rgba(252, 238, 10, 0.9);
    color: #07080d;
    text-shadow: none;
    font-family: "BlenderProUnified", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.75px;
}

.game-panel {
    border-color: rgba(252, 238, 10, 0.9);
}

.game-status-gold,
.game-status-gold .uo-status-detail__icon {
    color: #07080d;
}

.game-panel__titlebar--skills {
    justify-content: space-between;
    gap: 8px;
}

.game-panel__titlebar--skills .game-skill-panel__total {
    color: #07080d;
    font-size: 10px;
    letter-spacing: 0.6px;
}

.game-panel__titlebar--minimap {
    justify-content: space-between;
    gap: 8px;
}

.game-minimap-coords {
    font-size: 10px;
    letter-spacing: 0.6px;
    line-height: 1;
}

.game-panel--skills .game-panel__body {
    padding: 0;
}

.game-panel--skills .game-skill-panel__table {
    border: 0;
}

.game-panel--minimap .game-panel__body {
    padding: 0;
}

.game-panel--paperdoll .uo-paperdoll-figure,
.game-panel--minimap .uo-minimap-canvas {
    border: 0;
}

.page-game {
    background-color: #05060b;
}

.game-ui {
    background-color: #05060b;
    background-image: radial-gradient(circle, var(--cyber-dot-color) var(--cyber-dot-size), transparent calc(var(--cyber-dot-size) + 0.2px));
    background-size: var(--cyber-dot-spacing) var(--cyber-dot-spacing);
    background-position: var(--cyber-dot-offset-x) var(--cyber-dot-offset-y);
}

.game-actionbar-slot--filled {
    border-color: var(--cyber-border);
    box-shadow: inset 0 0 16px rgba(255, 46, 122, 0.16);
}

.game-chat-panel__messages,
.game-skill-panel__table,
.characters-roster__list,
.uo-skill-table,
.uo-paperdoll-figure,
.uo-minimap-canvas,
.uo-inventory-grid-wrap,
.uo-status-grid {
    border-color: var(--cyber-border);
}

.game-actionbar-slot,
.uo-inventory-slot,
.uo-paperdoll-slot,
.uo-status-lock-toggle,
.uo-minimap-control,
.game-chat-panel__send {
    border-color: var(--cyber-border);
}

.account-auth .input-text,
.uo-create-character-form__input,
.uo-create-character-form__select,
.game-chat-panel__input {
    border-color: var(--cyber-border);
    background: rgba(255, 46, 122, 0.08);
}

.account-auth .input-text:focus,
.uo-create-character-form__input:focus,
.uo-create-character-form__select:focus,
.game-chat-panel__input:focus {
    border-color: var(--accent);
    background: rgba(252, 238, 10, 0.08);
}

.uo-create-character-modal .modal-header,
.uo-skill-modal .modal-header,
.uo-status-modal .modal-header,
.uo-inventory-modal .modal-header,
.uo-paperdoll-modal .modal-header,
.uo-minimap-modal .modal-header {
    border-bottom-color: var(--cyber-border);
    background: linear-gradient(90deg, rgba(252, 238, 10, 0.2) 0%, rgba(255, 46, 122, 0.16) 100%);
}

.uo-create-character-modal .modal-footer,
.uo-skill-modal .modal-footer,
.uo-status-modal .modal-footer,
.uo-inventory-modal .modal-footer,
.uo-paperdoll-modal .modal-footer,
.uo-minimap-modal .modal-footer {
    border-top-color: var(--cyber-border);
    background: rgba(7, 10, 16, 0.92);
}

.site-footer__socials {
    border-top-color: var(--cyber-border);
    background: rgba(7, 10, 16, 0.94);
}

.site-footer__copyright {
    border-top-color: var(--cyber-border);
    background: rgba(4, 6, 11, 0.94);
}

.social-item__icon {
    color: var(--cyber-cyan);
}

.social-item h4 {
    color: var(--accent);
}

.site-tools__item {
    border-color: var(--cyber-border);
    background: rgba(8, 11, 16, 0.95);
    color: var(--cyber-cyan);
}

.site-tools__item:hover {
    color: var(--accent);
    background: rgba(12, 16, 24, 0.98);
}

.blog-page {
    padding: 8px 0 0;
}

.blog-page__header {
    margin-bottom: 24px;
}

.blog-page__kicker {
    margin: 0 0 8px;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cyber-cyan);
}

.blog-page__title,
.blog-post__title {
    margin: 0;
    color: #ffffff;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 36px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-page__subtitle {
    margin: 12px 0 0;
    max-width: 780px;
    color: #b7c8d7;
}

.blog-page__empty {
    padding: 32px;
    border: 1px solid var(--cyber-border);
    background: rgba(7, 9, 16, 0.92);
    color: #c7d5e2;
    text-align: center;
}

.blog-page__list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

.blog-card,
.blog-post {
    border: 1px solid var(--cyber-border);
    background: linear-gradient(160deg, rgba(10, 13, 20, 0.95) 0%, rgba(7, 9, 15, 0.95) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56);
    padding: 20px;
}

.blog-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-card__title {
    margin: 0;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 24px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.blog-card__title a {
    color: #ffffff;
}

.blog-card__title a:hover {
    color: var(--accent);
}

.blog-card__meta {
    margin: 0;
    color: #8ea2b4;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-card__excerpt {
    margin: 14px 0 0;
    color: #c4d2de;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid rgba(255, 46, 122, 0.5);
    background: rgba(255, 46, 122, 0.08);
    color: #ffc7de;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.blog-card__footer,
.blog-post__footer {
    margin-top: 16px;
}

.blog-post__header {
    margin-bottom: 20px;
}

.blog-post__body {
    color: #c8d6e2;
}

.blog-post__body h2,
.blog-post__body h3,
.blog-post__body h4 {
    margin: 1.1em 0 0.5em;
    color: #ffffff;
    font-family: "BlenderProUnified", sans-serif;
    letter-spacing: 0.6px;
}

.blog-post__body p,
.blog-post__body li {
    color: #c8d6e2;
}

.blog-post__body a {
    color: var(--accent);
}

.blog-post__body a:hover {
    color: #fff45a;
}

.wiki-page {
    padding: 8px 0 0;
}

.wiki-page__header {
    margin-bottom: 24px;
}

.wiki-page__kicker {
    margin: 0 0 8px;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cyber-cyan);
}

.wiki-page__title {
    margin: 0;
    color: #ffffff;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 36px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wiki-page__subtitle {
    margin: 12px 0 0;
    color: #b7c8d7;
    max-width: 820px;
}

.wiki-page__empty {
    padding: 32px;
    border: 1px solid var(--cyber-border);
    background: rgba(7, 9, 16, 0.92);
    color: #c7d5e2;
    text-align: center;
}

.wiki-shell {
    border: 1px solid var(--cyber-border);
    background: linear-gradient(160deg, rgba(10, 13, 20, 0.95) 0%, rgba(7, 9, 15, 0.95) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56);
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 0;
    min-height: 540px;
    max-height: min(74vh, 760px);
}

.wiki-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 10, 18, 0.84);
    min-height: 0;
}

.wiki-sidebar__scroll {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    padding: 10px 8px;
}

.wiki-sidebar__empty {
    margin: 0;
    padding: 12px;
    color: #9cb2c3;
    font-size: 12px;
    font-weight: 700;
}

.wiki-sidebar__topic {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(9, 15, 24, 0.9);
    color: #c7d5e2;
    text-align: left;
    font-family: "Josefin Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.35px;
    line-height: 1.3;
    margin: 0 0 6px;
    padding: 8px 10px 8px calc(10px + (var(--wiki-topic-depth, 0) * 14px));
    text-transform: uppercase;
}

.wiki-sidebar__topic:hover {
    border-color: rgba(255, 46, 122, 0.65);
    color: #ffffff;
}

.wiki-sidebar__topic--active {
    border-color: rgba(255, 46, 122, 0.9);
    background: linear-gradient(180deg, rgba(57, 12, 37, 0.95) 0%, rgba(31, 9, 24, 0.95) 100%);
    color: #ffffff;
}

.wiki-content {
    min-height: 0;
}

.wiki-content__scroll {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    padding: 20px 22px;
}

.wiki-content__empty {
    margin: 0;
    color: #9cb2c3;
}

.wiki-content__header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.wiki-content__title {
    margin: 0;
    color: #ffffff;
    font-family: "BlenderProUnified", sans-serif;
    font-size: 28px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.wiki-content__meta {
    margin: 8px 0 0;
    color: #8ea2b4;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wiki-content__body {
    color: #c8d6e2;
    line-height: 1.6;
}

.wiki-content__body h2,
.wiki-content__body h3,
.wiki-content__body h4 {
    margin: 1em 0 0.45em;
    color: #ffffff;
    font-family: "BlenderProUnified", sans-serif;
    letter-spacing: 0.5px;
}

.wiki-content__body a {
    color: var(--accent);
}

.wiki-content__body a:hover {
    color: #fff45a;
}

@media (max-width: 900px) {
    .wiki-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 620px;
    }

    .wiki-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        max-height: 240px;
    }
}

@media (max-width: 1100px) {
    .site-logo {
        height: 56px;
        min-height: 56px;
    }
}

/* Keep one text family throughout the cyber theme; preserve icon font glyphs separately. */
html,
body,
body * {
    font-family: "BlenderProUnified", sans-serif !important;
}

[class^="icon-"]::before,
[class*=" icon-"]::before {
    font-family: "fontello" !important;
}

/* Game status/skills lock controls are icon-only: no button frame or fill. */
.game-panel--status .uo-status-lock-toggle,
.game-panel--skills .uo-status-lock-toggle {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    line-height: 1;
}

.game-panel--status .uo-status-lock-toggle:hover,
.game-panel--skills .uo-status-lock-toggle:hover,
.game-panel--status .uo-status-lock-toggle:focus,
.game-panel--skills .uo-status-lock-toggle:focus,
.game-panel--status .uo-status-lock-toggle:focus-visible,
.game-panel--skills .uo-status-lock-toggle:focus-visible {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Slot borders: grey at rest, pink on hover. */
.game-actionbar-slot,
.game-actionbar-slot--filled,
.uo-inventory-slot,
.uo-paperdoll-slot {
    border-color: rgba(170, 180, 196, 0.72) !important;
}

.game-actionbar-slot:hover,
.game-actionbar-slot--filled:hover,
.uo-inventory-slot:hover,
.uo-paperdoll-slot:hover {
    border-color: var(--cyber-slot-border) !important;
}

/* Chat messages area: no frame, with inner padding. */
.game-chat-panel {
    gap: 0;
}

.game-chat-panel__messages {
    border: 0;
    border-bottom: 0;
    padding: 10px;
}

/* Disable text selection across game panels, except chat log + composer. */
.game-panel,
.game-panel * {
    -webkit-user-select: none;
    user-select: none;
}

.game-panel--chat .game-chat-panel__messages,
.game-panel--chat .game-chat-panel__messages *,
.game-panel--chat .game-chat-panel__entry,
.game-panel--chat .game-chat-panel__entry *,
.game-panel--chat .game-chat-panel__input {
    -webkit-user-select: text;
    user-select: text;
}

/* Inventory containers are highlighted to indicate valid drop targets. */
.uo-inventory-slot--container {
    box-shadow:
        inset 0 0 0 1px rgba(252, 238, 10, 0.52),
        inset 0 0 18px rgba(252, 238, 10, 0.16);
}

.uo-inventory-slot--container:hover {
    box-shadow:
        inset 0 0 0 1px rgba(252, 238, 10, 0.82),
        inset 0 0 20px rgba(252, 238, 10, 0.24);
}

.uo-inventory-slot--dragging {
    opacity: 0.05;
}

.uo-inventory-slot--dragging .uo-inventory-slot__icon,
.uo-inventory-slot--dragging .uo-inventory-slot__label {
    visibility: hidden;
}

.uo-paperdoll-slot--dragging {
    opacity: 0.05;
}

.uo-paperdoll-slot--dragging .uo-paperdoll-slot__icon,
.uo-paperdoll-slot--dragging .uo-paperdoll-slot__label {
    visibility: hidden;
}

/* Target mode cursor must override all panel/slot/button cursors (including child components). */
.page-game.page-game--targeting,
.page-game.page-game--targeting * {
    cursor: crosshair !important;
}

.uo-context-menu {
    position: fixed;
    min-width: 180px;
    max-width: 320px;
    border: 1px solid var(--cyber-border);
    background: linear-gradient(180deg, rgba(5, 10, 17, 0.96) 0%, rgba(3, 7, 12, 0.98) 100%);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 46, 122, 0.25);
    z-index: 9999;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uo-context-menu__entry {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #d4deed;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.35px;
    padding: 6px 8px;
}

.uo-context-menu__entry--highlight {
    color: #fcee0a;
}

.uo-context-menu__entry:hover,
.uo-context-menu__entry:focus,
.uo-context-menu__entry:focus-visible {
    border-color: var(--cyber-slot-border);
    background: linear-gradient(180deg, rgba(255, 46, 122, 0.2) 0%, rgba(255, 46, 122, 0.12) 100%);
    outline: 0;
}

.uo-item-tooltip {
    position: fixed;
    z-index: 10000;
    min-width: 0;
    width: max-content;
    max-width: min(360px, calc(100vw - 24px));
    border: 1px solid var(--cyber-border);
    background: linear-gradient(180deg, rgba(5, 10, 17, 0.96) 0%, rgba(3, 7, 12, 0.98) 100%);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 46, 122, 0.2);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.uo-item-tooltip__title {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.25px;
}

.uo-item-tooltip__line {
    color: #d4deed;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.uo-minimap-canvas__surface {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-gump-panel {
    position: absolute;
    max-width: none;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    touch-action: none;
    z-index: 260;
}

.game-panel__titlebar--gump {
    min-height: 26px;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.game-gump-panel__body {
    position: relative;
    height: calc(100% - 26px);
    min-height: 0;
    padding: 0;
    overflow: visible;
}

.game-gump-window {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    overflow: visible;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: default;
}

.game-gump-window:active {
    cursor: default;
}

.game-gump-layer {
    position: absolute;
    pointer-events: none;
}

.game-gump-layer--image {
    display: block;
    width: auto;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-gump-layer--tiled,
.game-gump-layer--resize,
.game-gump-layer--resize-piece {
    background-position: top left;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-gump-label {
    position: absolute;
    display: block;
    z-index: 3;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.15px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
    pointer-events: none;
}

.game-gump-input {
    position: absolute;
    z-index: 4;
    border: 1px solid rgba(101, 119, 138, 0.85);
    background: rgba(3, 9, 16, 0.84);
    color: #f4f7ff;
    font-size: 12px;
    padding: 2px 4px;
    outline: none;
    cursor: text;
}

.game-gump-input:focus {
    border-color: rgba(252, 238, 10, 0.82);
    box-shadow: 0 0 0 1px rgba(252, 238, 10, 0.28);
}

.game-gump-button {
    position: absolute;
    z-index: 5;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
}

.game-gump-button img {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-gump-switch {
    position: absolute;
    z-index: 5;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
}

.game-gump-switch img {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-gump-switch:focus-visible {
    outline: 1px solid rgba(252, 238, 10, 0.75);
    outline-offset: 1px;
}

.game-gump-button--fallback {
    border: 1px solid rgba(252, 238, 10, 0.7);
    background: rgba(252, 238, 10, 0.14);
    color: #fcee0a;
    font-size: 11px;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.2px;
    padding: 4px 9px;
}

/* Preserve Font Awesome glyphs under the global cyber font override. */
.fa-solid,
.fas,
.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.game-actionbar-layout {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: max-content;
}

.game-actionbar-weapon-abilities {
    --action-slot-size: 43.2px;
    --action-slot-gap: 4px;
    display: grid;
    grid-template-columns: var(--action-slot-size);
    grid-template-rows: repeat(2, var(--action-slot-size));
    gap: var(--action-slot-gap);
}

.game-actionbar-weapon-ability {
    position: relative;
    width: var(--action-slot-size);
    height: var(--action-slot-size);
    border: 1px solid rgba(252, 238, 10, 0.5);
    background:
        linear-gradient(180deg, rgba(8, 18, 28, 0.95) 0%, rgba(4, 11, 18, 0.95) 100%);
    color: #f5f7ff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(252, 238, 10, 0.1),
        0 0 10px rgba(7, 16, 24, 0.4);
}

.game-actionbar-weapon-ability__icon {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    object-fit: contain;
    pointer-events: none;
}

.game-actionbar-weapon-ability__tag {
    position: absolute;
    top: 2px;
    right: 3px;
    color: rgba(252, 238, 10, 0.92);
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    pointer-events: none;
}

.uo-minimap-overlay {
    position: absolute;
    inset: 8px;
    pointer-events: none;
    z-index: 4;
}

.uo-minimap-overlay__place,
.uo-minimap-overlay__coords {
    position: absolute;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        -1px 0 #000,
        1px 0 #000,
        0 -1px #000,
        0 1px #000,
        -1px -1px #000,
        1px -1px #000,
        -1px 1px #000,
        1px 1px #000;
}

.uo-minimap-overlay__place {
    left: 0;
    bottom: 0;
}

.uo-minimap-overlay__coords {
    top: 0;
    right: 0;
}

.game-actionbar-weapon-ability:hover {
    border-color: rgba(252, 238, 10, 0.82);
}

.game-actionbar-weapon-ability:focus {
    outline: none;
}

.game-actionbar-weapon-ability:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(252, 238, 10, 0.28),
        0 0 0 2px rgba(252, 238, 10, 0.26);
}

.game-actionbar-weapon-ability--active {
    border-color: rgba(255, 90, 90, 0.95);
    animation: game-actionbar-weapon-ability-pulse 1.35s ease-in-out infinite;
}

@keyframes game-actionbar-weapon-ability-pulse {
    0% {
        background:
            linear-gradient(180deg, rgba(40, 8, 8, 0.94) 0%, rgba(24, 4, 4, 0.94) 100%);
        box-shadow:
            inset 0 0 0 1px rgba(255, 90, 90, 0.2),
            0 0 8px rgba(150, 15, 15, 0.25);
    }

    50% {
        background:
            linear-gradient(180deg, rgba(106, 16, 16, 0.98) 0%, rgba(64, 8, 8, 0.98) 100%);
        box-shadow:
            inset 0 0 0 1px rgba(255, 128, 128, 0.48),
            0 0 16px rgba(236, 36, 36, 0.5);
    }

    100% {
        background:
            linear-gradient(180deg, rgba(40, 8, 8, 0.94) 0%, rgba(24, 4, 4, 0.94) 100%);
        box-shadow:
            inset 0 0 0 1px rgba(255, 90, 90, 0.2),
            0 0 8px rgba(150, 15, 15, 0.25);
    }
}

.game-actionbar-panel-toggles {
    --action-slot-size: 32px;
    --action-slot-gap: 4px;
    display: grid;
    grid-template-columns: repeat(3, var(--action-slot-size));
    grid-template-rows: repeat(2, var(--action-slot-size));
    gap: var(--action-slot-gap);
}

.game-actionbar-panel-toggle {
    position: relative;
    width: var(--action-slot-size);
    height: var(--action-slot-size);
    border: 1px solid rgba(255, 102, 178, 0.86);
    background:
        linear-gradient(180deg, rgba(255, 68, 150, 0.96) 0%, rgba(216, 10, 112, 0.96) 100%);
    color: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 1px rgba(255, 168, 211, 0.2),
        0 0 12px rgba(255, 46, 122, 0.3);
    overflow: hidden;
}

.game-actionbar-panel-toggle i {
    font-size: 11px;
    line-height: 1;
}

.game-actionbar-panel-toggle__key {
    position: absolute;
    bottom: 2px;
    right: 3px;
    color: rgba(255, 236, 248, 0.86);
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.game-actionbar-panel-toggle:hover {
    border-color: #ff84c3;
    background:
        linear-gradient(180deg, rgba(255, 95, 169, 0.98) 0%, rgba(231, 18, 130, 0.98) 100%);
}

.game-actionbar-panel-toggle:focus {
    outline: none;
}

.game-actionbar-panel-toggle:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(255, 196, 225, 0.34),
        0 0 0 2px rgba(255, 132, 195, 0.3);
}

.game-actionbar-panel-toggle--active {
    border-color: #fcee0a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 245, 166, 0.34),
        0 0 14px rgba(252, 238, 10, 0.34);
}

@media (max-width: 1100px) {
    .game-actionbar-weapon-abilities {
        --action-slot-size: 28px;
        --action-slot-gap: 4px;
    }

    .game-panel-bar {
        padding: 5px 6px;
    }

    .game-panel-bar__button {
        min-height: 28px;
        padding: 0 8px;
        font-size: 9px;
        gap: 5px;
    }

    .game-panel-bar__button i {
        font-size: 10px;
    }

    .game-panel-bar__hotkey {
        font-size: 8px;
    }

    .game-actionbar-panel-toggles {
        --action-slot-size: 28px;
        --action-slot-gap: 4px;
    }

    .game-actionbar-panel-toggle i {
        font-size: 10px;
    }
}
