/* 交易市集 */
.market-view > h2 {
    text-align: center;
}

.market-view .market-intro {
    margin: -6px auto 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    text-align: center;
    max-width: 42em;
}

.market-hint {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.market-subhead {
    margin: 16px 0 10px;
    font-size: 14px;
    color: #d4b8ff;
    text-align: center;
}

.market-subhead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 10px;
    text-align: center;
}

.market-subhead-row .market-sort-field {
    justify-content: center;
}

#market-panel {
    border-radius: 16px;
    border: 1px solid rgba(140, 100, 255, 0.35);
    background: linear-gradient(160deg, rgba(14, 10, 28, 0.95), rgba(6, 8, 20, 0.98));
    padding: 16px;
    min-height: 320px;
}

.market-locked {
    text-align: center;
    padding: 48px 20px;
}

.market-locked-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.market-locked h3 {
    margin: 0 0 8px;
    color: #fff;
}

.market-locked-sub {
    color: var(--muted);
    font-size: 13px;
}

.market-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.market-tab {
    flex: 1 1 auto;
    min-width: 100px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.market-tab:hover {
    border-color: rgba(192, 132, 252, 0.45);
    color: #fff;
}

.market-tab.active {
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.45), rgba(255, 0, 128, 0.25));
    border-color: rgba(192, 132, 252, 0.55);
    color: #fff;
}

.market-hint strong {
    color: #ffe566;
}

.market-cur-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.market-cur-badge--gold {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.market-cur-badge--silver {
    color: #8fd4ff;
    background: rgba(0, 180, 255, 0.12);
    border: 1px solid rgba(0, 180, 255, 0.35);
}

.market-cur-badge--dual {
    color: #e8d4ff;
    background: rgba(160, 100, 255, 0.14);
    border: 1px solid rgba(180, 140, 255, 0.4);
}

.market-sell-currency-lock {
    margin: 6px 0 8px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.market-sell-currency-lock strong {
    color: #c8b0ff;
}

.btn-list-locked {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.7), rgba(255, 0, 128, 0.5));
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
}

.btn-list-locked:hover {
    filter: brightness(1.12);
}

.market-subhead-row .market-subhead {
    margin: 0;
}

.market-sort-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(220, 235, 255, 0.9);
}

.market-sort-label {
    white-space: nowrap;
    color: rgba(180, 200, 255, 0.85);
}

.market-sort-select {
    min-width: 148px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(160, 120, 255, 0.45);
    background: rgba(12, 8, 28, 0.92);
    color: #fff8ec;
    font-size: 13px;
    cursor: pointer;
}

.market-sort-select:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.market-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 14px;
    text-align: center;
}

.market-balance {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    justify-content: center;
}

.market-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.market-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.market-filter-btn.active {
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.12);
}

.market-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
    overflow: visible;
    padding: 4px 6px 8px 2px;
}

.market-card-grid--lg {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.market-auction-board {
    margin-bottom: 20px;
}

.market-card-tile {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(160, 120, 255, 0.28);
    background: linear-gradient(165deg, rgba(20, 12, 40, 0.92), rgba(4, 6, 16, 0.98));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.market-card-tile:hover {
    border-color: rgba(192, 132, 252, 0.55);
    transform: translateY(-2px);
}

.market-card-tile--mine {
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 8px 28px rgba(255, 180, 0, 0.15);
}

.market-card-tile--bound {
    border-color: rgba(255, 184, 108, 0.45);
    opacity: 0.92;
}

.market-card-tile--bound:hover {
    border-color: rgba(255, 184, 108, 0.65);
}

.market-bound-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffe8c8;
    background: rgba(40, 24, 8, 0.9);
    border: 1px solid rgba(255, 184, 108, 0.55);
}

.market-hint--bound {
    margin-top: -4px;
    margin-bottom: 10px;
}

.market-mine-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #1a1000;
    background: linear-gradient(135deg, #ffe566, #ffb347);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.market-card-tile {
    position: relative;
}

.market-subhead-count {
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
}

.market-mine-count {
    color: #ffe566;
    font-weight: 700;
}

.market-listing-time {
    margin: 4px 0 0;
    font-size: 10px;
    color: #8fd4ff;
    text-align: center;
}

.market-hint--official strong {
    color: #ffd700;
}

.market-hint--black strong {
    color: #c8b0ff;
}

.market-tier-compare {
    margin: 4px 0 0;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.4;
    text-align: center;
}

.market-tier-compare strong {
    color: #ffd700;
}

.market-price--premium {
    color: #ffd700;
    font-size: 14px;
}

.market-tier-official {
    border-color: rgba(255, 215, 0, 0.35);
}

.market-tier-black {
    border-color: rgba(140, 100, 255, 0.4);
}

.market-currency-field {
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
}

.market-currency-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.market-cur-opt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(160, 120, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    font-size: 11px;
    font-weight: 700;
    color: #d8c8ff;
    cursor: pointer;
}

.market-cur-opt:has(input:checked) {
    border-color: rgba(255, 215, 0, 0.65);
    background: rgba(127, 0, 255, 0.25);
    color: #fff8ec;
}

.market-cur-opt.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.market-cur-opt input {
    margin: 0;
    accent-color: #c8a0ff;
}

.market-duration-field {
    margin-top: 4px;
    width: 100%;
    text-align: center;
}

.market-duration-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.market-dur-opt {
    flex: 1;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}

.market-dur-opt:has(input:checked) {
    border-color: rgba(192, 132, 252, 0.6);
    color: #fff;
    background: rgba(127, 0, 255, 0.25);
}

.market-dur-opt input {
    accent-color: #c084fc;
}

.market-card-visual {
    position: relative;
    aspect-ratio: 2 / 3;
    min-height: 200px;
    background: radial-gradient(ellipse at 50% 28%, var(--series-bg, #1a1030), #050508 78%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 6px 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.market-card-visual--lg {
    min-height: 240px;
    padding: 8px 10px;
    contain: layout style paint;
}

.market-card-mount {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: block;
    pointer-events: none;
}

.market-card-mount .void-card-stage,
.market-card-mount .catalog-tile-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #06040c;
}

.market-card-mount .void-card-img,
.market-card-mount .catalog-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    image-rendering: auto;
}

.market-card-mount .catalog-tile-holo,
.market-card-mount .void-card-holo {
    pointer-events: none;
}

.market-card-mount .catalog-tile-3d--static {
    cursor: inherit;
    transform: none !important;
}

/* 彈窗開啟時降低背景市集重繪 */
body.void-card-modal-open .market-official-grid,
body.void-card-modal-open .market-card-grid {
    content-visibility: auto;
    contain: layout style paint;
}

.market-card-mount .card-3d-wrap {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    margin: 0 !important;
    transform: none !important;
    perspective: 680px;
}

.market-card-mount .card-3d,
.market-card-mount .card-face {
    width: 100%;
    height: 100%;
}

.market-card-mount .card-3d-wrap.card-bag-fill .card-stars,
.market-card-mount .card-3d-wrap.card-bag-fill .void-shield-badge,
.market-card-mount .card-3d-wrap.card-bag-fill .rarity-pill,
.market-card-mount .card-3d-wrap.card-bag-fill .rarity-emblem,
.market-card-mount .card-3d-wrap.card-bag-fill .card-gold-frame,
.market-card-mount .card-3d-wrap.card-bag-fill .card-tags,
.market-card-mount .card-3d-wrap.card-bag-fill .card-unified-chrome,
.market-card-mount .card-3d-wrap.card-bag-fill .card-footer-ui,
.market-card-mount .card-3d-wrap.has-art-only .card-unified-chrome,
.market-card-mount .card-3d-wrap.has-art-only .card-footer-ui {
    display: none !important;
}

.market-card-mount .card-3d-wrap.card-bag-fill.has-art .card-face::after,
.market-card-mount .card-3d-wrap.has-art-only .card-face::after {
    display: none !important;
}

.market-card-mount .card-3d-wrap.card-bag-fill .card-face.has-art,
.market-card-mount .card-3d-wrap.has-art-only .card-face.has-art {
    overflow: hidden;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #06040c !important;
}

.market-card-mount .card-3d-wrap.card-bag-fill .card-art-img,
.market-card-mount .card-3d-wrap.has-art-only .card-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    filter: none;
}

.market-card-meta {
    padding: 10px 12px 6px;
    flex: 1;
    text-align: center;
}

.market-card-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.market-series-chip {
    display: block;
    font-size: 10px;
    color: rgba(200, 176, 255, 0.85);
    margin-bottom: 2px;
}

.market-card-name {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.market-card-foot {
    margin: 0;
    font-size: 10px;
    color: var(--muted);
}

.market-card-trade {
    padding: 0 12px 12px;
    text-align: center;
}

.market-card-trade--shop {
    padding-top: 4px;
}

.market-listing-meta {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.market-seller {
    margin: 0 0 4px;
    font-size: 11px;
    color: #c8b0ff;
    text-align: center;
}

.market-price {
    margin: 0 auto 8px;
    font-size: 13px;
    font-weight: 800;
    color: #ffe566;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-market-buy,
.btn-shop-buy {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #7f00ff, #ff0055);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

.btn-market-buy:hover,
.btn-shop-buy:hover {
    filter: brightness(1.1);
}

.market-empty {
    text-align: center;
    padding: 24px;
    color: var(--muted);
    font-size: 13px;
}

.market-empty--wide {
    grid-column: 1 / -1;
}

.market-my-listings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.market-my-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(127, 0, 255, 0.12);
    border: 1px solid rgba(160, 120, 255, 0.25);
    font-size: 12px;
    color: #fff;
}

.market-my-visual {
    width: 72px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 20%, var(--series-bg, #1a1030), #080810);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.market-my-visual .market-card-mount {
    width: 100%;
    height: 100%;
}

.market-my-info strong {
    display: block;
    margin: 4px 0 2px;
    font-size: 13px;
}

.market-my-info p {
    margin: 0;
    font-size: 12px;
    color: #ffe566;
    font-weight: 700;
}

.btn-market-cancel {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 120, 120, 0.45);
    background: rgba(80, 20, 20, 0.5);
    color: #ffb0b0;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.market-sell-grid,
.market-shop-grid,
.market-bound-grid,
.market-official-grid {
    overflow: visible;
}

.market-auction-panel {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.market-price-field {
    display: block;
    width: 100%;
    text-align: center;
}

.market-price-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #c8b0ff;
    margin-bottom: 4px;
    text-align: center;
}

.market-price-input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 240px;
    margin-inline: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(160, 120, 255, 0.4);
    border-radius: 8px;
    padding: 4px 8px;
}

.market-price-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    text-align: center;
    -moz-appearance: textfield;
}

.market-price-input::-webkit-outer-spin-button,
.market-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.market-price-unit {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.market-price-range {
    margin: 0;
    font-size: 10px;
    color: var(--muted);
    text-align: center;
}

.market-recycle-blocked {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 200, 120, 0.9);
    text-align: center;
    line-height: 1.45;
}

.btn-auction-list {
    width: 100%;
    max-width: 280px;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.85), rgba(255, 0, 128, 0.55));
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

.btn-auction-list:hover {
    filter: brightness(1.1);
}

.btn-list-gold {
    border-color: rgba(255, 215, 0, 0.4) !important;
    color: #ffe566 !important;
}

.btn-list-silver {
    border-color: rgba(180, 220, 255, 0.4) !important;
    color: #b8e0ff !important;
}

.btn-npc-sell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(180, 160, 255, 0.35);
    background: rgba(20, 12, 40, 0.75);
    color: #e8e0ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.35;
}

.btn-npc-sell__title {
    font-size: 12px;
    font-weight: 800;
    color: #e8e0ff;
}

.btn-npc-sell__amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 800;
    color: #ffe566;
}

.btn-npc-sell__amount span {
    color: #ffe566;
}

.btn-npc-sell:hover {
    border-color: rgba(200, 180, 255, 0.55);
    background: rgba(40, 24, 70, 0.9);
}

.market-recycle-wrap {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
}

.market-recycle-wrap.is-confirming .btn-npc-sell {
    display: none !important;
}

.market-recycle-confirm.is-collapsed,
.market-recycle-confirm[hidden] {
    display: none !important;
}

.market-recycle-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 120, 80, 0.45);
    background: rgba(40, 16, 12, 0.85);
}

.market-recycle-confirm-hint {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #ffc8a8;
    text-align: center;
    line-height: 1.4;
}

.market-recycle-confirm-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-npc-sell-cancel,
.btn-npc-sell-confirm {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-npc-sell-cancel {
    background: rgba(0, 0, 0, 0.45);
    color: #bbb;
}

.btn-npc-sell-cancel:hover {
    color: #eee;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-npc-sell-confirm {
    border-color: rgba(255, 140, 60, 0.55);
    background: linear-gradient(135deg, rgba(200, 80, 20, 0.9), rgba(255, 60, 80, 0.65));
    color: #fff;
}

.btn-npc-sell-confirm:hover {
    filter: brightness(1.08);
}

.market-shop-card .market-price {
    margin-bottom: 8px;
}

.btn-market-buy,
.btn-shop-buy,
.btn-market-cancel {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    display: block;
}

.market-sell-more-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0 20px;
}

.btn-market-sell-more {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(140, 100, 255, 0.45);
    background: rgba(30, 20, 60, 0.85);
    color: #e8e0ff;
    font-size: 13px;
    cursor: pointer;
}

.btn-market-sell-more:hover {
    border-color: rgba(180, 140, 255, 0.7);
    background: rgba(50, 35, 90, 0.9);
}

@media (max-width: 640px) {
    .market-card-grid,
    .market-card-grid--lg {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .market-card-visual--lg {
        min-height: 180px;
    }

    .market-my-row {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
    }

    .market-my-row .btn-market-cancel {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .market-tabs {
        flex-direction: column;
    }
}

/* 手機：市集面板對齊、避免背景圖穿透與邊框異常 */
@media (max-width: 720px) {
    .market-view > h2 {
        margin-bottom: 6px;
    }

    .market-view .market-intro {
        margin: 0 0 12px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.5;
        max-width: 100%;
        box-sizing: border-box;
    }

    #market-panel {
        overflow: hidden;
        border-radius: 14px;
        padding: 12px;
        min-height: 0;
        background: rgba(8, 10, 24, 0.95) !important;
        border: 1px solid rgba(140, 100, 255, 0.28);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
    }

    .market-tabs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .market-tab {
        border-radius: 10px;
        min-width: 0;
    }

    #market-tab-body,
    .market-auction-panel {
        padding-left: 0;
        padding-right: 0;
    }

    .market-subhead-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .market-sort-field {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .market-sort-select {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .market-card-grid,
    .market-card-grid--lg {
        padding: 2px 0 6px;
        gap: 12px;
    }
}
