.server-card-meta { position: absolute; z-index: 1; bottom: 8px; left: 7px; right: 7px; display: grid; gap: 5px; letter-spacing: 0; }
.server-card-name { color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.server-stock { display: inline-flex; align-items: center; gap: 5px; color: #79e2ac; font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.server-stock[data-available="false"] { color: #f7a0a0; }
.server-stock-dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.server-card .server-stock { font-size: 9px; gap: 4px; white-space: nowrap; padding-top: 5px; border-top: 1px solid #ffffff24; }
.server-card-quantity { display: block; margin-top: 2px; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.server-card-quantity[hidden], .market-stock-cell [hidden] { display: none; }
#market-browser { letter-spacing: 0; scroll-margin-top: 96px; }
.market-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; border-bottom: 1px solid #2b2b2b; }
.market-filters { grid-column: 2; display: flex; justify-content: center; gap: 24px; min-width: 0; }
.market-filters button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 84px; min-height: 96px; padding: 8px 0 12px; border-bottom: 2px solid transparent; background: transparent; color: #aaa; font-size: 12px; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s; }
.market-filter-logo { display: flex; align-items: center; justify-content: center; width: 64px; height: 48px; }
.market-filter-logo img { width: 60px; height: 48px; object-fit: cover; }
[data-market-filter="unity"] .market-filter-logo img { object-fit: contain; }
.market-filter-logo i { color: #bda359; font-size: 30px; }
.market-filter-label { display: inline-flex; align-items: center; gap: 6px; }
.market-filters button:hover { color: #fff; }
.market-filters button[aria-pressed="true"] { border-bottom-color: #d4af37; color: #f1d87c; }
.market-filters [data-market-filter-count], .market-category [data-market-count] { display: none; }
.market-search { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #2d2d2d; border-radius: 4px; background: #0b0b0b; }
.market-search > i { flex: 0 0 12px; color: #999; font-size: 12px; }
.market-search:focus-within { border-color: #999; outline: 1px solid #999; }
.market-search input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #eee; font-size: 12px; line-height: 18px; }
.market-search input::placeholder { color: #969696; opacity: 1; }
.market-search input::-webkit-search-cancel-button { display: none; }
.market-search button { flex: 0 0 28px; width: 28px; height: 28px; color: #bbb; border-radius: 3px; cursor: pointer; }
.market-search button:hover { color: #fff; background: #262626; }
.market-filters button:focus-visible, .market-search button:focus-visible { outline: 2px solid #e6e6e6; outline-offset: 3px; }
.market-group { margin-bottom: 24px; }
.market-group, .market-empty { scroll-margin-top: var(--market-scroll-offset, 80px); }
.market-category h3:focus-visible, .market-empty:focus-visible { outline: 2px solid #e6e6e6; outline-offset: 5px; }
.market-category { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px 0 16px; }
.market-category > div { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.market-category .market-game-logo { width: 88px; height: 52px; object-fit: cover; }
.market-category .market-game-logo--unity { object-fit: contain; }
.market-category h3 { color: #ececec; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
#cotations .market-grid { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid #2b2b2b; text-align: left; letter-spacing: 0; }
.market-col-server { width: 28%; }
.market-col-stock { width: 20%; }
.market-col-actions { width: 206px; }
.market-grid thead { border-top: 1px solid #2b2b2b; border-bottom: 1px solid #2b2b2b; background: #0c0c0c; }
.market-grid thead th { padding: 10px 12px; color: #b9b9b9; font-size: 11px; line-height: 18px; font-weight: 500; }
.market-grid thead th:nth-child(3), .market-grid thead th:nth-child(4) { text-align: right; }
.market-grid thead th > span:not(.sr-only) { color: #949494; font-weight: 400; }
#cotations .market-row { border: 0; border-bottom: 1px solid #232323; background: transparent; border-radius: 0; letter-spacing: 0; transition: background .15s; }
#cotations .market-row:hover, #cotations .market-row:focus-within { border-color: #2b2b2b; background: #111; transform: none; box-shadow: none; }
.market-row > th, .market-row > td { min-width: 0; padding: 11px 12px; vertical-align: middle; }
.market-server { display: flex; align-items: center; gap: 10px; min-width: 0; }
.market-server img { flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #303030; border-radius: 3px; object-fit: cover; }
.market-server img.market-category-image { object-fit: contain; padding: 2px; background: #080808; }
.market-server h4 { min-width: 0; font-size: 13px; line-height: 19px; font-weight: 500; color: #eee; overflow-wrap: anywhere; }
.market-quote { min-width: 0; font-variant-numeric: tabular-nums; }
.market-quote-label { display: none; color: #a5a5a5; font-size: 11px; line-height: 16px; font-weight: 400; }
.market-quote-label > span { color: #949494; }
.market-quote .price-value { display: block; color: #f0f0f0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.market-price-cell { text-align: right; }
.market-price-cell--buy .market-quote { min-height: 34px; }
.market-price-cell--sell .price-value { color: #d8c27c; }
.market-stock-cell { display: flex; min-width: 0; min-height: 14px; }
.market-stock-cell .server-stock { font-size: 10px; line-height: 14px; font-weight: 400; }
.market-stock-cell strong { color: #e0e0e0; font-size: 13px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.market-stock-amount { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.market-stock-amount strong { min-width: 0; }
.market-kamas-icon { flex: 0 0 12px; width: 12px; height: 12px; object-fit: contain; }
.market-stock-amount .market-kamas-icon { flex-basis: 14px; width: 14px; height: 14px; }
.market-unit { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: middle; }
.market-inventory-cell .market-stock-cell { flex-direction: column-reverse; align-items: flex-start; }
.market-price-cell--sell .market-stock-cell { justify-content: flex-end; }
.market-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.market-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #d4af37; border-radius: 3px; background: #d4af37; color: #0c0b07; font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: 0; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.market-action i { flex: 0 0 11px; width: 11px; font-size: 10px; }
.market-action:hover:not(:disabled), .market-action:focus-visible:not(:disabled) { border-color: #e7c33f; background: #e7c33f; }
.market-action:active:not(:disabled) { border-color: #d4af37; background: #d4af37; }
.market-action:focus-visible { outline: 2px solid #e6e6e6; outline-offset: 3px; }
.exchange-row .market-action:disabled { border-color: #292929; background: #111; color: #7e7e7e; box-shadow: none; cursor: not-allowed; transition: none; }
.market-empty { padding: 48px 16px; border-bottom: 1px solid #232323; color: #aaa; text-align: center; }
.market-empty > i { margin-bottom: 12px; color: #b3a36e; font-size: 18px; }
.market-empty p { font-size: 13px; }
.market-toolbar[hidden], .market-group[hidden], #cotations .market-row[hidden], .market-search button[hidden], .market-empty[hidden] { display: none; }
@media (min-width: 900px) {
    .market-grid thead th { position: sticky; top: var(--market-scroll-offset, 80px); z-index: 2; background: #0c0c0c; box-shadow: inset 0 1px #2b2b2b, 0 1px #2b2b2b; }
    .market-grid thead th:first-child { box-shadow: inset 1px 0 #2b2b2b, inset 0 1px #2b2b2b, 0 1px #2b2b2b; }
    .market-grid thead th:last-child { box-shadow: inset -1px 0 #2b2b2b, inset 0 1px #2b2b2b, 0 1px #2b2b2b; }
}
@media (max-width: 999px) {
    .market-toolbar { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 12px; }
    .market-filters { grid-column: 1; }
    .market-search { grid-column: 1; width: 100%; height: 40px; margin-top: 6px; }
}
@media (max-width: 899px) {
    .market-filters { gap: 8px; }
    .market-filters button { flex: 1 1 0; max-width: 84px; min-width: 0; min-height: 96px; }
    .market-search button { flex-basis: 36px; width: 36px; height: 36px; }
    #cotations .market-grid, .market-grid tbody { display: block; }
    .market-grid thead, .market-grid colgroup { display: none; }
    #cotations .market-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 12px; }
    #cotations .market-row:last-child { border-bottom: 0; }
    .market-row > th, .market-row > td { display: block; padding: 0; }
    .market-server-cell { grid-column: 1; align-self: center; }
    .market-inventory-cell { grid-column: 2; text-align: right; }
    .market-inventory-cell .market-stock-cell { align-items: flex-end; }
    .market-inventory-cell > .market-quote-label { display: block; font-size: 10px; line-height: 14px; }
    .market-price-cell { text-align: left; border-top: 1px solid #1f1f1f; padding-top: 10px !important; }
    .market-price-cell--sell .market-stock-cell { justify-content: flex-start; }
    .market-price-cell--buy .market-quote { min-height: 0; }
    .market-quote-label { display: block; }
    .market-quote .price-value { font-size: 14px; line-height: 22px; }
    .market-actions-cell { grid-column: 1 / -1; }
    .market-actions { gap: 16px; }
    .market-action { height: 44px; font-size: 12px; }
    .market-action i { font-size: 11px; }
}
.server-marquee[data-paused="true"] .scrolling-track { animation-play-state: paused; }
.server-marquee[data-paused="false"] .scrolling-track { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
    .server-marquee .server-card, .server-marquee .server-card img { transition: none; }
    #cotations .market-row, .market-action, .market-filters button { transition: none; }
}
