/* ==========================================================================
   Marché des personnages (pages marche, marche-fiche, marche-vendre, marche-ventes)
   Même thème « braise & or » que style.css (jetons --ember, --gold, --surface...).
   ========================================================================== */

.mk { padding-top: 28px; }
.mk .alert { margin-bottom: 22px; }

/* Onglets du marché ------------------------------------------------------- */
.mk-tabs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; margin: 0 auto;
    width: max-content; max-width: 100%; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.mk-tabs a {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px;
    color: var(--text-2); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s;
}
.mk-tabs a svg { width: 18px; height: 18px; }
.mk-tabs a:hover { color: var(--text); background: var(--surface-2); }
.mk-tabs a[aria-current="page"] { color: #1a0b03; background: var(--grad); box-shadow: 0 8px 24px -10px rgba(255, 106, 43, .8); }
.mk-wallet {
    display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 9px 14px; border-radius: 11px;
    background: rgba(45, 212, 191, .08); border: 1px solid rgba(45, 212, 191, .3); color: #8ff0de; font-weight: 700;
}

/* Prix ------------------------------------------------------------------- */
.mk-price {
    display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700;
    color: #7ff0d9; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 18px rgba(45, 212, 191, .35);
}
.mk-price .og { width: 1.15em; height: 1.15em; }
.mk-price.xl { font-size: 2rem; }

/* Mise en page liste ----------------------------------------------------- */
.mk-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; }
.mk-layout > .alert { grid-column: 1 / -1; margin: 0; }
.mk-filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 10px; padding: 22px; }
.mk-side-title { display: flex; align-items: center; gap: 10px; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.mk-side-title svg { width: 18px; height: 18px; color: var(--gold); }
.mk-label { margin: 10px 0 0; font: 600 .72rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mk-search input { width: 100%; }

.mk-classes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mk-class { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s; }
.mk-class input { position: absolute; opacity: 0; pointer-events: none; }
.mk-class img { width: 80%; height: 80%; object-fit: contain; filter: saturate(.7) brightness(.85); transition: filter .2s; }
.mk-class:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mk-class:hover img, .mk-class.on img { filter: none; }
.mk-class.on { border-color: rgba(255, 138, 61, .75); background: rgba(255, 106, 43, .14); box-shadow: 0 0 0 1px rgba(255, 138, 61, .35), 0 6px 20px -8px rgba(255, 106, 43, .7); }
.mk-class:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.mk-all { font-size: .66rem; font-weight: 700; color: var(--text-2); }

.mk-range { position: relative; height: 28px; margin-top: 4px; }
.mk-range-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: rgba(255, 236, 220, .12); }
.mk-range-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #2dd4bf, #7ff0d9); }
.mk-range input[type=range] { position: absolute; left: 0; top: 4px; width: 100%; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.mk-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #0c0907; border: 2px solid #5eead4; cursor: grab; box-shadow: 0 0 12px rgba(45, 212, 191, .5); }
.mk-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #0c0907; border: 2px solid #5eead4; cursor: grab; }
.mk-range input[type=range]::-webkit-slider-runnable-track { background: none; }
.mk-range-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-range-vals small { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mk-range-vals input { width: 100%; padding: 9px 10px; }
.mk-filter-actions { display: grid; gap: 8px; margin-top: 10px; }
.mk-sell-cta { margin-top: 6px; border-color: rgba(255, 181, 71, .45); color: var(--gold-2); }
.mk-sell-cta svg { width: 18px; height: 18px; }

.mk-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--text-2); }
.mk-results-head p { margin: 0; }
.mk-empty { text-align: center; padding: 56px 26px; }
.mk-empty > svg { width: 46px; height: 46px; color: var(--gold); opacity: .8; }
.mk-empty h3 { margin: 14px 0 6px; }

/* Cartes ----------------------------------------------------------------- */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mk-card {
    display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.mk-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 60% at 50% 100%, rgba(255, 90, 31, .16), transparent 60%);
}
.mk-card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 61, .45); box-shadow: var(--glow); }
.mk-card-head { display: flex; align-items: center; gap: 12px; position: relative; }
.mk-head { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: rgba(255, 236, 220, .06); border: 1px solid var(--line); padding: 3px; flex-shrink: 0; }
.mk-head.lg { width: 72px; height: 72px; border-radius: 18px; padding: 6px; }
.mk-id { min-width: 0; flex: 1; }
.mk-id h3, .mk-id h2 { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-id h3 { font-size: 1.12rem; }
.mk-id h3 a { color: var(--text); }
.mk-id h3 a:hover { color: var(--gold-2); }
.mk-id p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.mk-card .mk-price { font-size: 1.15rem; }
.mk-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; position: relative; }
.mk-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.mk-tags svg { width: 13px; height: 13px; color: var(--gold); }

.mk-card-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; position: relative; color: inherit; }
.mk-col { display: grid; gap: 6px; }
.mk-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.mk-slot {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
    background: rgba(12, 9, 7, .7); border: 1px solid var(--line-2); box-shadow: inset 0 0 12px rgba(0, 0, 0, .6);
}
.mk-slot img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.mk-slot b { color: var(--muted); font-size: .8rem; }
.mk-slot.vide { background: rgba(255, 236, 220, .025); border-style: dashed; border-color: var(--line); box-shadow: none; }

/* Personnage sur son socle de braise */
.mk-stage { position: relative; height: 200px; display: grid; place-items: end center; isolation: isolate; }
.mk-stage.lg { height: 330px; }
.mk-aura { position: absolute; left: 50%; bottom: 14px; width: 78%; aspect-ratio: 1; transform: translateX(-50%); z-index: -2; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 106, 43, .45), rgba(255, 106, 43, .08) 65%, transparent); filter: blur(6px); animation: mk-pulse 4s ease-in-out infinite; }
.mk-hero { position: relative; max-height: 88%; max-width: 100%; object-fit: contain; z-index: 1; margin-bottom: 18px;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); transition: transform .4s var(--ease); }
.mk-card:hover .mk-hero { transform: translateY(-4px) scale(1.03); }
.mk-socle { position: absolute; left: 50%; bottom: 6px; width: 70%; height: 26px; transform: translateX(-50%); z-index: 0; border-radius: 50%;
    background: radial-gradient(closest-side, #2a140b 55%, transparent 100%);
    box-shadow: 0 0 0 1px rgba(255, 138, 61, .35), 0 0 26px rgba(255, 90, 31, .65), inset 0 -6px 14px rgba(255, 90, 31, .55); }
.mk-socle::after { content: ''; position: absolute; inset: 30% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 90, .9), transparent); filter: blur(5px); }
@keyframes mk-pulse { 50% { opacity: .65; transform: translateX(-50%) scale(.94); } }

.mk-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; border-top: 1px solid var(--line); padding-top: 12px; }
.mk-card-foot small { font-size: .78rem; }
.mk-actions { display: inline-flex; gap: 8px; align-items: center; }

/* Fiche ------------------------------------------------------------------ */
.mk-sheet-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px 26px; margin-bottom: 22px; }
.mk-sheet-head .eyebrow { margin: 0 0 4px; }
.mk-sheet-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.mk-buybox { display: grid; justify-items: end; gap: 2px; }
.mk-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mk-panel { padding: 22px; }
.mk-side { display: grid; gap: 20px; }
.mk-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mk-facts li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mk-facts .ico { width: 38px; height: 38px; border-radius: 11px; }
.mk-facts .ico svg { width: 20px; height: 20px; }
.mk-facts small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-facts b { font-weight: 600; }

.mk-gear { display: grid; gap: 14px; }
.mk-gear-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.mk-gear .mk-slot { width: 54px; height: 54px; border-radius: 14px; }
.mk-gear-list { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.mk-gear-list li { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; font-size: .86rem; }
.mk-gear-list img { grid-row: span 2; width: 28px; height: 28px; object-fit: contain; }
.mk-gear-list span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-gear-list small { color: var(--muted); font-size: .72rem; }

.mk-stat-big { display: grid; padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(255, 138, 61, .3); margin-bottom: 12px; }
.mk-stat-big small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-stat-big b { font-family: var(--font-display); font-size: 1.6rem; color: var(--ember-2); font-variant-numeric: tabular-nums; }
.mk-mini, .mk-stats, .mk-sets { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mk-mini li, .mk-stats li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mk-mini li:last-child, .mk-stats li:last-child { border-bottom: 0; }
.mk-mini span, .mk-stats span { color: var(--text-2); }
.mk-mini b, .mk-stats b { font-variant-numeric: tabular-nums; }
.mk-stats li.sub span { color: var(--muted); }
.mk-sets li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; }

/* Achat ------------------------------------------------------------------ */
.mk-buy { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: center;
    border-color: rgba(255, 138, 61, .35); background: linear-gradient(135deg, rgba(255, 106, 43, .1), rgba(255, 181, 71, .04)), rgba(16, 11, 8, .72); }
.mk-buy > h3:only-child, .mk-buy > h3 + p + .btn { grid-column: 1 / -1; }
.mk-buy > .btn { justify-self: start; }
.mk-buy h3 { margin-bottom: 6px; }
.mk-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.mk-missing { color: #ffb0b0; font-weight: 600; }
.mk-buy-form { display: grid; gap: 14px; justify-items: start; }
.mk-buy-form .btn-lg .mk-price { color: #1a0b03; text-shadow: none; }
.mk-accounts { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-account { position: relative; cursor: pointer; }
.mk-account input { position: absolute; opacity: 0; }
.mk-account-box { display: grid; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.mk-account-box small { color: var(--muted); font-size: .76rem; }
.mk-account input:checked + .mk-account-box { border-color: rgba(255, 138, 61, .8); background: rgba(255, 106, 43, .14); box-shadow: 0 0 0 1px rgba(255, 138, 61, .35); }
.mk-account input:focus-visible + .mk-account-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.mk-account.off { opacity: .45; cursor: not-allowed; }

/* Vente ------------------------------------------------------------------ */
.mk-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mk-steps li { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.mk-steps li > b { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #1a0b03; background: var(--grad); font-family: var(--font-display); }
.mk-steps span { font-size: .84rem; color: var(--muted); }
.mk-steps strong { display: block; color: var(--text); font-size: .92rem; margin-bottom: 2px; }
.mk-sell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.mk-sell-list { display: grid; gap: 18px; }
.mk-acc { padding: 20px; }
.mk-acc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.mk-acc-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; }
.mk-acc-head svg { width: 20px; height: 20px; color: var(--gold); }
.mk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mk-char { position: relative; cursor: pointer; }
.mk-char input { position: absolute; opacity: 0; }
.mk-char-box { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s; }
.mk-char-box img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: rgba(255, 236, 220, .06); padding: 2px; }
.mk-char-box b { display: block; font-weight: 600; }
.mk-char-box small { display: block; color: var(--muted); font-size: .78rem; }
.mk-char-box em { display: block; font-style: normal; font-size: .72rem; color: #ffb0b0; }
.mk-char:not(.off):hover .mk-char-box { transform: translateY(-2px); border-color: var(--line-2); }
.mk-char input:checked + .mk-char-box { border-color: rgba(255, 138, 61, .85); background: rgba(255, 106, 43, .15); box-shadow: 0 0 0 1px rgba(255, 138, 61, .35), 0 8px 24px -12px rgba(255, 106, 43, .9); }
.mk-char input:focus-visible + .mk-char-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.mk-char.off { cursor: not-allowed; }
.mk-char.off .mk-char-box { opacity: .5; }
.mk-sell-box { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 10px; }
.mk-sell-box h3 { margin: 0; }
.mk-sel-name { margin: 0; }
.mk-price-input { position: relative; display: block; }
.mk-price-input input { width: 100%; font-size: 1.4rem; font-weight: 700; padding-right: 48px; color: #7ff0d9; }
.mk-price-input .og { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; }
.mk-net { margin: 0; font-weight: 600; color: var(--gold-2); min-height: 1.2em; }
.small { font-size: .8rem; }

/* Mes ventes ------------------------------------------------------------- */
.mk-kpis { margin-bottom: 22px; }
.mk-kpis .card { display: grid; gap: 6px; padding: 20px 22px; }
.mk-kpis b { font-family: var(--font-display); font-size: 1.6rem; }
.mk-table { margin-bottom: 22px; }
.mk-table .row { margin-bottom: 14px; }
.mk-table .card-title { margin: 0; }
.mk-table .card-title svg { width: 22px; height: 22px; color: var(--gold); }
.mk-table .card-title + .table-wrap, .mk-table .card-title + p { margin-top: 14px; }
.mk-table .who img { object-fit: contain; padding: 2px; }
.mk-msg { display: block; margin-top: 4px; color: #ffb0b0; font-size: .76rem; max-width: 260px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
    .mk-sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mk-sheet .mk-gear { grid-column: 1 / -1; grid-row: 1; }
    .mk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .mk-layout, .mk-sell { grid-template-columns: 1fr; }
    .mk-filters, .mk-sell-box { position: static; }
    .mk-classes { grid-template-columns: repeat(7, 1fr); }
    .mk-buy { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .mk-sheet { grid-template-columns: 1fr; }
    .mk-steps { grid-template-columns: 1fr; }
    .mk-gear-list { grid-template-columns: 1fr; }
    .mk-gear .mk-slot { width: 44px; height: 44px; }
    .mk-stage.lg { height: 260px; }
    .mk-tabs { width: 100%; }
    .mk-tabs a { flex: 1; justify-content: center; padding: 10px; }
    .mk-tabs a span { display: none; }
    .mk-wallet { margin-left: 0; }
    .mk-sheet-head { padding: 18px; }
    .mk-buybox { justify-items: start; }
}
@media (max-width: 420px) {
    .mk-classes { grid-template-columns: repeat(5, 1fr); }
    .mk-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .mk-aura { animation: none; }
    .mk-card, .mk-hero, .mk-class, .mk-char-box { transition: none; }
}

/* Inventaire de la fiche ------------------------------------------------- */
.mk-inv { margin-top: 22px; }
.mk-inv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.mk-inv-head .card-title { margin: 0; }
.mk-inv-head .card-title svg { width: 22px; height: 22px; color: var(--gold); }
.mk-inv-head .card-title small { font-family: var(--font); font-size: .82rem; font-weight: 500; }
.mk-inv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font: 600 .82rem var(--font); transition: background .2s, border-color .2s, color .2s; }
.mk-chips button b { font-weight: 700; color: var(--muted); font-size: .74rem; }
.mk-chips button:hover { border-color: var(--line-2); color: var(--text); }
.mk-chips button.on { background: rgba(255, 106, 43, .16); border-color: rgba(255, 138, 61, .6); color: var(--gold-2); }
.mk-chips button.on b { color: var(--gold); }
.mk-inv-search { width: 220px; padding: 9px 12px; }
.mk-inv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mk-inv-grid li { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; min-width: 0; }
.mk-inv-grid li:hover { border-color: var(--line-2); background: var(--surface-2); }
.mk-inv-grid li[hidden] { display: none; }
.mk-inv-ico { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(12, 9, 7, .55); }
.mk-inv-ico img { max-width: 34px; max-height: 34px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.mk-inv-ico b { color: var(--muted); }
.mk-inv-name { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.mk-qty { flex-shrink: 0; font: 700 .76rem var(--font); color: var(--gold-2); padding: 2px 7px; border-radius: 999px; background: rgba(255, 181, 71, .12); border: 1px solid rgba(255, 181, 71, .3); }
.mk-inv-none { margin: 12px 0 0; }
@media (max-width: 720px) { .mk-inv-search { width: 100%; } .mk-inv-tools { width: 100%; } }

/* Cases remplies : fond clair façon parchemin (comme l'inventaire du jeu) */
.mk-slot:not(.vide), .mk-inv-ico, .mk-gear-list img {
    background: radial-gradient(circle at 50% 40%, #fffaf0 0%, #f1e6d2 70%, #e2d2b4 100%);
    border: 1px solid rgba(255, 193, 90, .55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 4px 12px -6px rgba(0, 0, 0, .8);
}
.mk-slot:not(.vide) img, .mk-inv-ico img { filter: drop-shadow(0 1px 1px rgba(60, 30, 10, .35)); }
.mk-gear-list img { border-radius: 8px; padding: 2px; }
.mk-slot:not(.vide) b, .mk-inv-ico b { color: #7a5a3a; }
/* L'icône ne dépasse jamais de sa case, quelle que soit sa forme */
.mk-slot { overflow: hidden; }
.mk-slot img { width: auto !important; height: auto !important; max-width: 82%; max-height: 82%; object-fit: contain; }

/* Encadré sans formulaire (ta vente, déjà vendu, connexion) : une seule colonne */
.mk-buy:not(:has(form)):not(:has(.mk-buy-text)) { grid-template-columns: 1fr; gap: 10px; }
.mk-buy:not(:has(form)):not(:has(.mk-buy-text)) p { margin: 0; }

/* Personnage contenu dans sa scène (la hauteur en % ne s'applique pas dans la grille) */
.mk-stage { min-width: 0; overflow: visible; }
.mk-stage .mk-hero { max-height: 172px; max-width: 100%; width: auto; height: auto; }
.mk-stage.lg .mk-hero { max-height: 290px; }
@media (max-width: 720px) { .mk-stage.lg .mk-hero { max-height: 228px; } }
.mk-card .mk-hero { max-width: 125%; max-height: 182px; }
.mk-card .mk-col { position: relative; z-index: 2; }
.mk-msg.mk-tax { color: var(--muted); }
