/* Eclipse Reborn UI Theme - grounded game chrome */

:root {
    --ui-ink: #f2e8c9;
    --ui-muted: #b7ac90;
    --ui-subtle: #867a60;
    --ui-gold: #ffd84a;
    --ui-gold-soft: #c7a64b;
    --ui-green: #9bd26f;
    --ui-red: #ee7568;
    --ui-blue: #7fb4ff;
    --ui-shadow: rgba(0, 0, 0, 0.56);
    --ui-panel-bg: rgba(8, 9, 6, 0.94);
    --ui-panel-bg-soft: rgba(18, 18, 13, 0.94);
    --ui-panel-bg-raised: rgba(28, 25, 17, 0.96);
    --ui-panel-bg-warm: rgba(38, 32, 20, 0.92);
    --ui-stone-bg: #171812;
    --ui-control-bg: #28220f;
    --ui-control-bg-hover: #3b3216;
    --ui-border: rgba(255, 216, 74, 0.24);
    --ui-border-strong: rgba(255, 216, 74, 0.44);
    --ui-border-muted: rgba(139, 121, 76, 0.38);
    --ui-radius-panel: 6px;
    --ui-radius-control: 4px;
    --ui-space-1: 4px;
    --ui-space-2: 8px;
    --ui-space-3: 12px;
    --ui-space-4: 16px;
}

.interaction-frame,
.shop-window,
.crafting-window,
.bank-window,
.trade-window,
.dialogue-panel,
.trade-request,
.party-invite,
.quest-offer-dialog,
.inventory-panel,
.skills-panel,
.party-panel,
.admin-menu {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-panel);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.06), rgba(0, 0, 0, 0) 34%),
        linear-gradient(90deg, rgba(255, 216, 74, 0.035) 1px, transparent 1px),
        var(--ui-panel-bg);
    background-size: auto, 32px 32px, auto;
    color: var(--ui-ink);
    box-shadow:
        0 14px 34px var(--ui-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.interaction-frame__context-name,
.dialogue-panel__name,
.shop-window__title,
.trade-window__title,
.inventory-panel__title,
.skills-panel__title,
.party-panel__title,
.quest-offer-dialog__title {
    color: var(--ui-gold);
    text-shadow: 0 1px 0 #000;
}

.interaction-frame__context-meta,
.dialogue-panel__meta,
.shop-window__item-stock,
.shop-window__exchange-meta,
.inventory-panel__eq-label,
.skills-panel__xp,
.quest-offer-dialog__subtitle,
.quest-offer-dialog__description {
    color: var(--ui-muted);
}

.interaction-button,
.shop-window__buy-btn,
.trade-window__btn,
.bank-window__btn,
.party-panel__btn,
.quest-offer-dialog__action,
.quest-offer-dialog__close {
    min-height: 34px;
    border-color: var(--ui-border-strong);
    border-radius: var(--ui-radius-control);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.12), rgba(0, 0, 0, 0)),
        var(--ui-control-bg);
    color: var(--ui-gold);
    font-weight: 900;
    text-shadow: 0 1px 0 #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.interaction-button:hover,
.shop-window__buy-btn:hover,
.trade-window__btn:hover,
.bank-window__btn:hover,
.party-panel__btn:hover,
.quest-offer-dialog__action:hover,
.quest-offer-dialog__close:hover {
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.18), rgba(0, 0, 0, 0)),
        var(--ui-control-bg-hover);
}

.interaction-button:disabled,
.shop-window__buy-btn:disabled,
.trade-window__btn:disabled,
.bank-window__btn:disabled {
    border-color: rgba(139, 121, 76, 0.3);
    background: rgba(19, 18, 13, 0.9);
    color: var(--ui-subtle);
    cursor: not-allowed;
    opacity: 1;
}

.dialogue-panel__close,
.shop-window__close,
.trade-window__close,
.bank-window__close,
.party-panel__close,
.inventory-panel__close,
.skills-panel__close,
.game-shell__utility-close {
    border-radius: var(--ui-radius-control);
    border-color: var(--ui-border-muted);
    background: rgba(18, 16, 11, 0.96);
    color: var(--ui-muted);
}

.dialogue-panel__portrait,
.interaction-portrait,
.shop-window__portrait,
.quest-offer-dialog__portrait,
.interaction-frame__symbol {
    border-color: rgba(255, 216, 74, 0.22);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 216, 74, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 216, 74, 0.055), rgba(0, 0, 0, 0)),
        #14140e;
}

body .game-shell {
    --shell-gold: var(--ui-gold);
    --shell-border: rgba(255, 216, 74, 0.28);
    --shell-bg: var(--ui-stone-bg);
    --shell-panel: rgba(7, 8, 5, 0.96);
    --shell-panel-2: rgba(23, 22, 15, 0.96);

    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 6px;
    padding: 6px;
    background:
        linear-gradient(180deg, #202018, #11130d 44%, #070805);
}

.game-shell__map-header,
.game-shell__side,
.game-shell__utility {
    border-color: var(--shell-border);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.055), rgba(0, 0, 0, 0)),
        var(--shell-panel);
}

.game-shell__side {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        -10px 0 30px rgba(0, 0, 0, 0.28);
}

.game-shell__status {
    padding: 0;
    border: 0;
    background: transparent;
}

.game-shell__vitals {
    padding: 10px;
    border: 1px solid rgba(255, 216, 74, 0.16);
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.05), rgba(0, 0, 0, 0)),
        rgba(14, 14, 9, 0.95);
}

.game-shell__vitals-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    align-items: baseline;
    margin-bottom: 9px;
}

.game-shell__vitals-name {
    color: var(--ui-gold);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
}

.game-shell__vitals-level {
    color: var(--ui-ink);
    font-weight: 900;
}

.game-shell__vitals-class {
    grid-column: 1 / -1;
    color: var(--ui-green);
    font-size: 11px;
    font-style: normal;
    text-align: left;
}

.game-shell__vitals-meter {
    height: 13px;
    margin-top: 4px;
    border-color: rgba(0, 0, 0, 0.82);
    background: rgba(35, 31, 22, 0.95);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.52);
}

.game-shell__vitals-meter > span,
.game-shell__vitals-meter > strong {
    text-shadow: 0 1px 0 #000;
}

.game-shell__controls {
    justify-content: flex-end;
    margin-top: 8px;
}

.game-shell__control-btn,
.game-shell__dpad-btn,
.game-shell__touch-action {
    border-color: var(--ui-border-muted);
    border-radius: var(--ui-radius-control);
    background: rgba(20, 18, 12, 0.94);
}

.game-shell__control-btn:hover,
.game-shell__dpad-btn:hover,
.game-shell__touch-action:hover {
    border-color: var(--ui-border-strong);
    background: rgba(45, 38, 18, 0.94);
}

.game-shell__tabs {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-radius: 5px;
    background: rgba(5, 6, 4, 0.72);
}

.game-shell__tab {
    min-height: 44px;
    border-color: rgba(139, 121, 76, 0.34);
    border-radius: 4px;
    background: rgba(20, 18, 12, 0.94);
}

.game-shell__tab:hover,
.game-shell__tab--active {
    border-color: var(--ui-border-strong);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.12), rgba(0, 0, 0, 0)),
        rgba(45, 38, 18, 0.94);
}

.game-shell__tab-icon {
    color: var(--ui-gold);
}

.game-shell__tab-text {
    font-size: 10px;
    font-weight: 900;
}

.game-shell__tab-panels {
    min-height: 0;
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.035), rgba(0, 0, 0, 0)),
        rgba(7, 8, 5, 0.7);
    overflow: auto;
}

.game-shell .inventory-panel,
.game-shell .skills-panel,
.game-shell .party-panel,
.game-shell .admin-menu {
    padding: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.game-shell .inventory-panel__section-title,
.game-shell .skills-panel__title {
    margin-bottom: 8px;
    color: var(--ui-gold);
    font-size: 12px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
}

.game-shell .inventory-panel__grid {
    gap: 4px;
}

.inventory-panel__slot,
.inventory-panel__eq-slot,
.trade-window__slot,
.bank-window__slot {
    border-color: rgba(119, 104, 67, 0.52);
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.035), rgba(0, 0, 0, 0)),
        #171711;
}

.inventory-panel__slot--filled,
.inventory-panel__eq-slot--filled,
.trade-window__slot,
.bank-window__slot--filled {
    border-color: rgba(255, 216, 74, 0.3);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.08), rgba(0, 0, 0, 0)),
        #1d1b14;
}

.inventory-panel__slot--selected {
    border-color: var(--ui-gold);
    box-shadow:
        inset 0 0 0 1px rgba(255, 216, 74, 0.42),
        0 0 0 1px rgba(255, 216, 74, 0.14);
}

.inventory-panel__eq-grid {
    gap: 5px;
    padding: 10px;
    border-color: rgba(255, 216, 74, 0.18);
    border-radius: 5px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 216, 74, 0.12), transparent 34%),
        rgba(11, 12, 8, 0.72);
}

.inventory-panel__eq-slot {
    min-height: 54px;
    gap: 3px;
}

.inventory-panel__eq-icon {
    display: grid;
    place-items: center;
    min-height: 28px;
}

.game-shell .inventory-panel__eq-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    background-image: none;
    line-height: 1;
}

.inventory-panel__eq-item-icon {
    width: 28px;
    height: 28px;
    background-size: 24px 24px;
}

.inventory-panel__eq-name {
    display: block;
    width: 100%;
    min-height: 22px;
    overflow: hidden;
    color: var(--ui-ink);
    font-size: 9px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
}

.inventory-panel__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    border-bottom-color: rgba(255, 216, 74, 0.16);
}

.inventory-panel__stat-chip {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--ui-muted);
    font-weight: 900;
}

.inventory-panel__stat-chip strong {
    color: var(--ui-ink);
    font-size: 12px;
}

.inventory-panel__stat-label {
    color: var(--ui-gold-soft);
    font-size: 10px;
}

.inventory-panel__item-qty {
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(255, 216, 74, 0.22);
    background: rgba(0, 0, 0, 0.82);
}

.inventory-panel__tooltip {
    border-color: rgba(255, 216, 74, 0.58);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.06), rgba(0, 0, 0, 0)),
        rgba(8, 9, 6, 0.98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.46);
}

.shop-window,
.crafting-window,
.bank-window {
    width: min(620px, calc(100vw - 32px));
}

.trade-window {
    width: min(700px, calc(100vw - 32px));
}

.dialogue-panel {
    width: min(640px, calc(100vw - 32px));
}

.dialogue-panel__title-bar,
.shop-window__title-bar,
.bank-window__title-bar,
.trade-window__title-bar {
    padding: 9px 10px;
    border-bottom-color: rgba(255, 216, 74, 0.18);
}

.dialogue-panel__content,
.shop-window__body,
.bank-window__body {
    gap: 12px;
}

.shop-window__item,
.quest-offer-dialog__card,
.skills-panel__row {
    border-color: rgba(255, 216, 74, 0.12);
    border-radius: 4px;
    background: rgba(255, 216, 74, 0.035);
}

.shop-window__item:hover {
    border-color: rgba(255, 216, 74, 0.32);
    background: rgba(255, 216, 74, 0.07);
}

.interaction-item-stack {
    position: relative;
    display: inline-grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.interaction-item-stack--compact {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

.interaction-item-stack--named-compact {
    grid-template-columns: 30px minmax(0, 1fr);
    place-items: center start;
    height: auto;
    gap: 7px;
}

.interaction-item-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 216, 74, 0.18);
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.075), rgba(0, 0, 0, 0)),
        rgba(9, 10, 7, 0.92);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 25px 25px;
    color: var(--ui-gold);
    font-size: 10px;
    font-weight: 900;
    image-rendering: pixelated;
    line-height: 1;
    text-shadow: 0 1px 0 #000;
}

.interaction-item-stack--compact .interaction-item-icon {
    width: 26px;
    height: 26px;
    background-size: 23px 23px;
}

.interaction-item-stack__text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.interaction-item-stack__name {
    min-width: 0;
    overflow: hidden;
    color: var(--ui-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.interaction-item-stack__meta {
    min-width: 0;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interaction-item-stack__qty {
    position: absolute;
    right: -3px;
    bottom: -3px;
    min-width: 15px;
    padding: 1px 3px;
    border: 1px solid rgba(255, 216, 74, 0.26);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.84);
    color: var(--ui-gold);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 0 #000;
}

.shop-window__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    align-items: center;
    gap: 8px;
}

.shop-window__item--exchange {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.shop-window__item--locked {
    opacity: 0.72;
}

.shop-window__item-stack {
    min-width: 130px;
}

.shop-window__item-price,
.shop-window__item-level,
.shop-window__item-stock,
.shop-window__exchange-rate {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.22);
}

.shop-window__exchange-main {
    gap: 6px;
}

.shop-window__exchange-meta {
    gap: 4px;
}

.crafting-window__recipe-main {
    gap: 8px;
}

.crafting-window__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.crafting-window__flow-group {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.crafting-window__flow-group--missing .interaction-item-stack__meta,
.crafting-window__ingredient--missing .interaction-item-stack__name {
    color: var(--ui-red);
}

.crafting-window__flow-arrow {
    color: var(--ui-gold-soft);
    font-weight: 900;
}

.crafting-window__ingredient {
    min-width: 0;
}

.crafting-window__recipe-state {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--ui-muted);
    font-weight: 900;
}

.crafting-window__recipe-state--ready {
    border-color: rgba(155, 210, 111, 0.36);
    color: var(--ui-green);
}

.crafting-window__recipe-state--blocked {
    border-color: rgba(238, 117, 104, 0.34);
    color: var(--ui-red);
}

.bank-window__grid {
    grid-template-columns: repeat(8, minmax(38px, 1fr));
    gap: 4px;
}

.bank-window .bank-window__slot {
    min-height: 44px;
    padding: 3px;
}

.bank-window .bank-window__slot--filled {
    border-color: rgba(255, 216, 74, 0.26);
}

.bank-window__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.bank-window__selected-item {
    min-height: 38px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 216, 74, 0.12);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 800;
}

.bank-window__selected-item--empty {
    display: flex;
    align-items: center;
}

.bank-window__btn {
    width: auto;
    min-width: 128px;
}

.trade-window__panel {
    border-radius: 4px;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.trade-window__panel--accepted {
    border-color: rgba(155, 210, 111, 0.48);
    background:
        linear-gradient(180deg, rgba(155, 210, 111, 0.08), rgba(0, 0, 0, 0)),
        rgba(0, 0, 0, 0.3);
}

.trade-window__panel--pending {
    border-color: rgba(255, 216, 74, 0.14);
}

.trade-window__slot {
    min-height: 36px;
    padding: 4px;
}

.trade-window__slot--filled {
    display: grid;
    place-items: center;
}

.trade-window__slot--named {
    place-items: stretch;
    min-height: 52px;
}

.trade-window__item-stack--named {
    width: 100%;
}

.trade-window__item-stack--named .interaction-item-stack__name {
    font-size: 11px;
    line-height: 1.12;
}

.trade-window__item-stack--named .interaction-item-stack__meta {
    font-size: 9px;
}

.trade-window__status {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.trade-window__status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--ui-muted);
    font-weight: 800;
}

.trade-window__status-badge--accepted,
.trade-window__btn--accepted {
    border-color: rgba(155, 210, 111, 0.44);
    color: var(--ui-green);
}

.quest-log-entry {
    border-color: rgba(255, 216, 74, 0.18);
    border-radius: 5px;
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.05), rgba(0, 0, 0, 0)),
        rgba(10, 11, 7, 0.72);
}

.quest-log-entry--current {
    border-color: rgba(155, 210, 111, 0.34);
    background:
        linear-gradient(180deg, rgba(155, 210, 111, 0.06), rgba(0, 0, 0, 0)),
        rgba(10, 11, 7, 0.78);
}

.quest-log-entry__state {
    border-radius: 3px;
    border-color: rgba(255, 216, 74, 0.22);
    background: rgba(0, 0, 0, 0.22);
    color: var(--ui-muted);
}

.quest-log-entry--current .quest-log-entry__state {
    border-color: rgba(155, 210, 111, 0.4);
    color: var(--ui-green);
}

.quest-log-entry__progress-row {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

.quest-log-entry__track {
    height: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 216, 74, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
}

.quest-log-entry__fill {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ui-green), var(--ui-gold));
    transform-origin: left center;
}

.quest-log-entry__reward {
    border-color: rgba(255, 216, 74, 0.14);
    background: rgba(0, 0, 0, 0.22);
}

.quest-offer-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 0;
}

.quest-offer-dialog__close {
    min-width: 34px;
    min-height: 28px;
    padding: 2px 8px;
}

.quest-offer-dialog__title-group {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.quest-offer-dialog__body {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    padding: 12px 14px;
}

.quest-offer-dialog__card {
    display: grid;
    gap: 10px;
    padding: 10px;
}

.quest-offer-dialog__card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.quest-offer-dialog__card-text {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.quest-offer-dialog__state,
.quest-offer-dialog__reward-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(255, 216, 74, 0.16);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.24);
    color: var(--ui-gold);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
}

.quest-offer-dialog__objectives {
    display: grid;
    gap: 5px;
}

.quest-offer-dialog__objective {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 216, 74, 0.1);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--ui-ink);
}

.quest-offer-dialog__objective--done {
    border-color: rgba(155, 210, 111, 0.22);
}

.quest-offer-dialog__objective-marker {
    min-width: 34px;
    color: var(--ui-muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.quest-offer-dialog__objective--done .quest-offer-dialog__objective-marker {
    color: var(--ui-green);
}

.quest-offer-dialog__objective-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.quest-offer-dialog__objective-progress {
    color: var(--ui-gold-soft);
    font-size: 10px;
    font-weight: 900;
}

.quest-offer-dialog__rewards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--ui-muted);
}

.quest-offer-dialog__reward-label {
    color: var(--ui-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.quest-offer-dialog__reward-item {
    width: auto;
    min-width: 148px;
    min-height: 34px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
}

.quest-offer-dialog__actions {
    display: flex;
    justify-content: flex-end;
}

.shop-window__item-name,
.shop-window__exchange-rate,
.shop-window__exchange-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

.shop-window__exchange-rate,
.shop-window__exchange-meta {
    white-space: normal;
}

.shop-window__buy-btn {
    min-width: 48px;
    white-space: normal;
}

.shop-window__tabs {
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(255, 216, 74, 0.16);
    border-radius: 5px;
    background: rgba(4, 5, 3, 0.58);
}

.shop-window__tab {
    min-height: 30px;
    border-radius: 3px;
}

.trade-window__panels {
    gap: 10px;
}

.bank-window__slot {
    min-width: 0;
    overflow: hidden;
}

.bank-window__item-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interaction-panel {
    border-color: var(--ui-border-strong);
    border-radius: var(--ui-radius-control);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.06), rgba(0, 0, 0, 0)),
        rgba(7, 8, 5, 0.9);
    backdrop-filter: blur(1px);
}

.interaction-panel--resource {
    border-color: rgba(155, 210, 111, 0.54);
}

.interaction-panel--hostile {
    border-color: rgba(238, 117, 104, 0.58);
}

.interaction-panel__avatar {
    border-radius: 3px;
}

.skill-action {
    width: min(216px, calc(100vw - 24px));
    padding: 8px 10px 9px;
    border-color: var(--ui-border-strong);
    border-radius: var(--ui-radius-panel);
    background:
        linear-gradient(180deg, rgba(255, 216, 74, 0.06), rgba(0, 0, 0, 0)),
        rgba(7, 8, 5, 0.94);
}

.skill-action__label {
    color: var(--ui-ink);
}

.skill-action__feedback {
    min-height: 15px;
    margin-top: 2px;
    color: #88ffff;
    text-shadow: 0 1px 0 #000;
}

.chat-box {
    border-color: rgba(255, 216, 74, 0.2);
    background: rgba(5, 6, 4, 0.76);
}

.chat-box--focused {
    background: rgba(5, 6, 4, 0.95);
}

.chat-box__filters {
    display: flex;
    gap: 3px;
    padding: 3px 3px 0;
    background: rgba(5, 6, 4, 0.88);
    border: 1px solid rgba(255, 216, 74, 0.14);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.chat-box__filter {
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(255, 216, 74, 0.18);
    border-radius: 3px;
    background: rgba(20, 18, 12, 0.94);
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 800;
}

.chat-box__filter--active {
    border-color: rgba(255, 216, 74, 0.42);
    color: var(--ui-gold);
    background: rgba(45, 38, 18, 0.94);
}

@media (max-width: 900px) {
    body .game-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 0;
        padding: 0;
    }

    .game-shell__side {
        position: fixed;
        inset: auto 0 0;
        z-index: 45;
        max-height: min(70vh, 520px);
        padding: 7px;
        border-width: 1px 0 0;
        border-radius: 8px 8px 0 0;
        transform: translateY(calc(100% - 54px));
        transition: transform 0.18s ease;
    }

    .game-shell--drawer-open .game-shell__side {
        transform: translateY(0);
    }

    .game-shell__tabs {
        order: -1;
        gap: 2px;
    }

    .game-shell__tab {
        min-height: 42px;
    }

    .game-shell__vitals {
        padding: 7px;
    }

    .game-shell__vitals-header {
        margin-bottom: 5px;
    }

    .game-shell__vitals-name {
        font-size: 14px;
    }

    .game-shell__vitals-meter {
        height: 11px;
    }

    .game-shell__status,
    .game-shell__tab-panels {
        min-height: 0;
    }

    .game-shell__map-modal-positioner {
        width: min(100%, 560px);
        max-height: min(76vh, calc(100% - 24px));
    }

    .dialogue-panel,
    .shop-window,
    .crafting-window,
    .bank-window,
    .trade-window {
        width: min(100%, 560px);
    }

    .shop-window__item,
    .shop-window__item--exchange {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .shop-window__item-level,
    .shop-window__item-stock {
        display: none;
    }

    .crafting-window__flow {
        grid-template-columns: 1fr;
    }

    .crafting-window__flow-arrow {
        display: none;
    }

    .bank-window__grid {
        grid-template-columns: repeat(6, minmax(36px, 1fr));
    }

    .bank-window__actions,
    .quest-offer-dialog__card-header,
    .quest-offer-dialog__objective {
        grid-template-columns: 1fr;
    }

    .quest-offer-dialog__body {
        grid-template-columns: 1fr;
    }

    .quest-offer-dialog__portrait {
        display: none;
    }
}

@media (max-width: 680px) {
    .game-shell__side {
        height: min(44vh, 372px);
        max-height: min(44vh, 372px);
        transform: translateY(calc(100% - 56px));
    }

    .game-shell__tabs {
        height: 56px;
    }

    .game-shell__tab {
        min-height: 48px;
    }

    .game-shell__tab-panels {
        top: 56px;
    }

    .game-shell .inventory-panel__grid {
        grid-template-columns: repeat(4, minmax(56px, 76px));
        justify-content: center;
    }

    .game-shell .inventory-panel__slot {
        min-height: 68px;
    }
}
