.market-board-section {
    --market-ink: #211b13;
    --market-muted: #746b5e;
    --market-gold: #ae8028;
    --market-line: rgba(144, 105, 31, .16);
    position: relative;
    z-index: 2;
    padding: 5rem 1rem;
    background:
        radial-gradient(circle at 85% 8%, rgba(222, 178, 83, .16), transparent 28rem),
        linear-gradient(180deg, #fffdf8 0%, #f7f1e6 100%);
    overflow: hidden;
}

.market-board-page .market-board-section {
    padding-top: 8.5rem;
}

.market-board-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(154, 115, 42, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 115, 42, .06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.market-board-shell {
    position: relative;
    width: min(72rem, 100%);
    margin-inline: auto;
}

.market-board-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.market-board-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--market-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.market-board-eyebrow i {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: #2ca56f;
    box-shadow: 0 0 0 .3rem rgba(44, 165, 111, .12);
    animation: market-pulse 2.2s ease-in-out infinite;
}

.market-board-header h2 {
    margin: .75rem 0 .45rem;
    color: var(--market-ink);
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    font-weight: 900;
    line-height: 1.35;
}

.market-board-header p {
    max-width: 38rem;
    margin: 0;
    color: var(--market-muted);
    font-size: .88rem;
    line-height: 1.9;
}

.market-board-status {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 12rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(46, 145, 101, .18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 .75rem 2rem rgba(68, 48, 18, .06);
    backdrop-filter: blur(14px);
}

.market-board-status > span {
    width: .68rem;
    height: .68rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #2ca56f;
    box-shadow: 0 0 0 .3rem rgba(44, 165, 111, .12);
}

.market-board-status strong,
.market-board-status small {
    display: block;
}

.market-board-status strong {
    color: #256c4e;
    font-size: .76rem;
}

.market-board-status small {
    margin-top: .2rem;
    color: var(--market-muted);
    font-size: .66rem;
}

.market-board-status.is-error {
    border-color: rgba(186, 64, 53, .18);
}

.market-board-status.is-error > span {
    background: #ba4035;
    box-shadow: 0 0 0 .3rem rgba(186, 64, 53, .1);
}

.market-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.market-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--market-line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 1.25rem 3rem rgba(68, 48, 18, .075);
}

.market-card-wide {
    grid-column: 1 / -1;
}

.market-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .78rem .9rem;
    border-bottom: 1px solid var(--market-line);
    background: linear-gradient(110deg, rgba(251, 246, 236, .96), rgba(255, 255, 255, .94));
}

.market-card-heading span {
    color: var(--market-gold);
    font-size: .68rem;
    font-weight: 800;
}

.market-card-heading h3 {
    margin: .12rem 0 0;
    color: var(--market-ink);
    font-size: .92rem;
    font-weight: 900;
}

.market-card-heading b {
    flex: 0 0 auto;
    padding: .32rem .6rem;
    border-radius: 999px;
    color: #80601f;
    background: rgba(193, 148, 57, .12);
    font-size: .64rem;
}

.market-table-wrap {
    width: 100%;
    overflow: visible;
}

.market-table-scroll {
    max-height: none;
    overflow: visible;
}

.market-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: .66rem;
    white-space: nowrap;
}

.market-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.market-table thead th {
    padding: .52rem .3rem;
    color: #8c806e;
    background: #fffdf9;
    font-size: .59rem;
    font-weight: 700;
    text-align: center;
}

.market-table thead th:first-child {
    text-align: right;
}

.market-table tbody tr {
    border-top: 1px solid rgba(123, 96, 48, .09);
    transition: background-color .18s ease;
}

.market-table tbody tr:hover {
    background: rgba(222, 178, 83, .07);
}

.market-table tbody th,
.market-table tbody td {
    padding: .57rem .3rem;
    color: #51483c;
    line-height: 1.45;
    text-align: center;
}

.market-table tbody th {
    color: var(--market-ink);
    font-weight: 800;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

.market-table th:nth-child(1) { width: 26%; }
.market-table th:nth-child(2) { width: 18%; }
.market-table th:nth-child(3) { width: 14%; }
.market-table th:nth-child(4),
.market-table th:nth-child(5) { width: 15%; }
.market-table th:nth-child(6) { width: 12%; }

.market-row-title,
.market-table tbody th small {
    display: block;
}

.market-table tbody th small {
    margin-top: .12rem;
    color: #a19380;
    font-size: .58rem;
    font-weight: 500;
}

.market-price {
    color: #735318 !important;
    font-weight: 900;
}

.market-change {
    display: inline-flex;
    min-width: 2.8rem;
    justify-content: center;
    padding: .18rem .3rem;
    border-radius: .42rem;
    font-weight: 900;
}

.market-change.is-positive {
    color: #138556;
    background: rgba(19, 133, 86, .09);
}

.market-change.is-negative {
    color: #bd3c35;
    background: rgba(189, 60, 53, .08);
}

.market-change.is-neutral {
    color: #81786b;
    background: rgba(129, 120, 107, .08);
}

.market-time {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    color: #8e8373 !important;
}

.market-time span,
.market-time small {
    display: block;
}

.market-time small {
    margin-top: .08rem;
    color: #b09f87;
    font-size: .5rem;
    line-height: 1.2;
}

[data-market-empty] td {
    padding: 1.35rem !important;
    color: #958875 !important;
    text-align: center !important;
}

.market-board-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .5rem;
    margin: 1rem 0 0;
    color: #857966;
    font-size: .68rem;
    line-height: 1.8;
    text-align: center;
}

.market-board-note svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: .18rem;
    stroke-width: 1.6;
}

@keyframes market-pulse {
    50% { box-shadow: 0 0 0 .5rem rgba(44, 165, 111, 0); }
}

@media (max-width: 1023px) {
    .market-board-grid {
        grid-template-columns: 1fr;
    }

    .market-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .market-board-section {
        padding: 3.75rem .75rem;
    }

    .market-board-page .market-board-section {
        padding-top: 7rem;
    }

    .market-board-header {
        display: block;
    }

    .market-board-status {
        width: fit-content;
        margin-top: 1rem;
    }

    .market-table {
        font-size: .63rem;
    }

    .market-card-heading {
        padding: .7rem .75rem;
    }
}

@media (max-width: 639px) {
    .market-table thead th:nth-child(4),
    .market-table thead th:nth-child(5),
    .market-table tbody td:nth-child(4),
    .market-table tbody td:nth-child(5) {
        display: none;
    }

    .market-table th:nth-child(1) { width: 36%; }
    .market-table th:nth-child(2) { width: 27%; }
    .market-table th:nth-child(3) { width: 20%; }
    .market-table th:nth-child(6) { width: 17%; }

    .market-table thead th,
    .market-table tbody th,
    .market-table tbody td {
        padding-inline: .22rem;
    }

    .market-time {
        font-size: .58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .market-board-eyebrow i {
        animation: none;
    }
}
