/* ══════════════════════════════════════════════════════════════════════════
   TitanMC Prison Market v2 — forged copper / warm obsidian art direction.
   Route-owned overrides loaded after mh1 and the global hotfix layer.
   No grain, no rotating sigil, no perspective floor, no infinite hero sweep.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --pr2-copper: #d77932;
  --pr2-copper-light: #f0a15c;
  --pr2-copper-dark: #9f4a22;
  --pr2-ivory: #f2e9dc;
  --pr2-muted: #a89c8d;
  --pr2-dim: #786d61;
  --pr2-ink: #070609;
  --pr2-ink-raised: #0e0b0e;
  --pr2-line: rgba(232, 148, 80, .16);
  --pr2-line-hot: rgba(240, 161, 92, .4);

  /* Legacy marketplace components read these variables. */
  --bg: #08070a;
  --surface: #100d10;
  --card: #171216;
  --gold: var(--pr2-copper);
  --gold-light: var(--pr2-copper-light);
  --gold-glow: rgba(215, 121, 50, .1);
  --gold-border: var(--pr2-line);
  --glass: rgba(14, 11, 14, .9);
  --glass-strong: rgba(11, 9, 12, .97);
  --text: #d8cfc2;
  --text-sec: #a89f92;
  --text-dim: #746c62;
}

html,
body {
  background: #08070a !important;
}

body #marketplace {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 900px 620px at 88% 24%, rgba(142, 70, 33, .035), transparent 68%),
    linear-gradient(180deg, #08070a 0%, #08080d 45%, #08070a 100%);
}

body #marketplace::after,
body.market-prison-page::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

body.market-prison-page > #particles {
  display: none !important;
}

/* ── Hero scene: static architectural depth, no decorative machinery. ─── */

body #marketplace .mh-hero[data-market-theme="prison"] {
  --mh-1: #f0b070;
  --mh-2: var(--pr2-copper-light);
  --mh-3: var(--pr2-copper);
  --mh-4: var(--pr2-copper-dark);
  --mh-rgb: 215, 121, 50;
  --mh-ink: var(--pr2-ink);
  --mh-ink-2: var(--pr2-ink-raised);
  --mh-tx-0: #f8f0e5;
  --mh-tx-1: var(--pr2-ivory);
  --mh-tx-2: #bbae9e;
  --mh-tx-3: #82776b;
  --mh-tx-4: #5f574f;
  --mh-hair: var(--pr2-line);
  --mh-hair-soft: rgba(232, 148, 80, .075);

  min-height: min(946px, calc(100svh - 64px)) !important;
  padding: clamp(25px, 2.3vw, 38px) 0 0 !important;
  background:
    radial-gradient(ellipse 52% 34% at 50% -4%, rgba(215, 121, 50, .115), transparent 71%),
    radial-gradient(ellipse 34% 48% at 0 48%, rgba(107, 62, 42, .07), transparent 74%),
    radial-gradient(ellipse 34% 44% at 100% 70%, rgba(166, 77, 34, .055), transparent 76%),
    linear-gradient(180deg, #0d090a 0%, #090709 53%, #08080d 100%) !important;
  border-bottom-color: rgba(232, 148, 80, .13);
  contain: paint;
}

.mh-hero[data-market-theme="prison"] :is(.mh-sigil, .mh-floor, .mh-horizon, .mh-embers, .mh-beams) {
  display: none !important;
  animation: none !important;
}

.mh-hero[data-market-theme="prison"] .mh-atmos::before,
.mh-hero[data-market-theme="prison"] .mh-atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mh-hero[data-market-theme="prison"] .mh-atmos::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 12% 88%, rgba(0, 0, 0, .72)),
    radial-gradient(ellipse 27% 35% at 50% 30%, rgba(240, 161, 92, .055), transparent 72%);
}

.mh-hero[data-market-theme="prison"] .mh-atmos::after {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 5, .54));
}

.mh-hero[data-market-theme="prison"] .mh-cool {
  background:
    radial-gradient(ellipse 34% 52% at -3% 18%, rgba(78, 54, 48, .08), transparent 72%),
    radial-gradient(ellipse 38% 54% at 103% 84%, rgba(83, 49, 37, .065), transparent 74%);
}

/* Two restrained item lots give the scene a real Minecraft-market identity.
   They are static layers with a tiny pointer response, not decorative loops. */
@media (min-width: 1120px) {
  .mh-hero[data-market-theme="prison"] .mh-cool::before,
  .mh-hero[data-market-theme="prison"] .mh-cool::after {
    position: absolute;
    top: clamp(150px, 12.5vw, 188px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(150px, 13vw, 198px);
    height: clamp(196px, 18vw, 252px);
    padding: 16px 12px;
    font: 650 8px/1 var(--font-mono, monospace);
    letter-spacing: .17em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
    opacity: .68;
    filter: saturate(.94) brightness(1.04);
    animation: mhp2LotIn .86s cubic-bezier(.16, 1, .3, 1) both;
  }

  .mh-hero[data-market-theme="prison"] .mh-cool::before {
    content: "LOT 041 · NARZĘDZIE";
    left: clamp(22px, 3.4vw, 54px);
    color: rgba(106, 221, 225, .68);
    background:
      url("/img/items/DIAMOND_PICKAXE.svg") center 43% / clamp(82px, 7.2vw, 112px) no-repeat,
      radial-gradient(circle at 50% 43%, rgba(42, 182, 196, .2), transparent 40%),
      linear-gradient(145deg, rgba(23, 20, 22, .78), rgba(8, 8, 11, .28));
    border: 1px solid rgba(75, 190, 202, .24);
    box-shadow: inset 0 1px rgba(156, 239, 242, .05), 0 20px 44px rgba(0, 0, 0, .26);
    transform: translate3d(calc(var(--mh-px, 0) * -9px), calc(var(--mh-py, 0) * -5px), 0) rotate(-1.25deg);
  }

  .mh-hero[data-market-theme="prison"] .mh-cool::after {
    content: "LOT 128 · WALUTA";
    right: clamp(22px, 3.4vw, 54px);
    color: rgba(107, 214, 148, .7);
    background:
      url("/img/items/EMERALD.svg") center 43% / clamp(78px, 6.8vw, 106px) no-repeat,
      radial-gradient(circle at 50% 43%, rgba(65, 187, 112, .2), transparent 40%),
      linear-gradient(215deg, rgba(23, 20, 22, .78), rgba(8, 8, 11, .28));
    border: 1px solid rgba(83, 192, 126, .24);
    box-shadow: inset 0 1px rgba(160, 238, 190, .05), 0 20px 44px rgba(0, 0, 0, .26);
    transform: translate3d(calc(var(--mh-px, 0) * 9px), calc(var(--mh-py, 0) * -5px), 0) rotate(1.25deg);
    animation-delay: .08s;
  }
}

@keyframes mhp2LotIn {
  from { opacity: 0; clip-path: polygon(0 0, 0 0, 0 13px, 0 100%, 0 100%, 0 calc(100% - 13px)); }
  to { opacity: .68; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }
}

.mh-hero[data-market-theme="prison"] .mh-dome {
  opacity: .7;
  background:
    radial-gradient(ellipse 17% 22% at 50% 48%, rgba(246, 189, 133, .09), transparent 62%),
    radial-gradient(ellipse 40% 39% at 50% 52%, rgba(215, 121, 50, .05), transparent 68%);
  transform: none !important;
  will-change: auto;
}

.mh-hero[data-market-theme="prison"] .mh-vault {
  transform: none !important;
  will-change: auto;
}

.mh-hero[data-market-theme="prison"] .mh-vault i {
  width: 24%;
  background: linear-gradient(90deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .38) 48%, transparent);
  filter: blur(2px);
}

.mh-hero[data-market-theme="prison"] .mh-fade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .84), transparent 12% 88%, rgba(0, 0, 0, .84)),
    linear-gradient(180deg, rgba(0, 0, 0, .26), transparent 18% 72%, rgba(0, 0, 0, .62)),
    radial-gradient(ellipse 104% 98% at 50% 40%, transparent 50%, rgba(0, 0, 0, .42));
}

/* ── Market masthead. ────────────────────────────────────────────────── */

.mh-hero[data-market-theme="prison"] .mh-masthead {
  border-bottom-color: rgba(232, 148, 80, .16);
}

.mh-hero[data-market-theme="prison"] .mh-mark b {
  color: var(--pr2-copper-light);
}

.mh-hero[data-market-theme="prison"] .mh-mark em,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-signal {
  color: #73695e !important;
}

.mh-hero[data-market-theme="prison"] .mh-signal-dot {
  background: #55d68d !important;
  animation: mhp2Status 2.8s ease-out infinite !important;
}

@keyframes mhp2Status {
  0% { box-shadow: 0 0 0 0 rgba(85, 214, 141, .42); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(85, 214, 141, 0); }
}

.mh-hero[data-market-theme="prison"] .mh-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 148, 80, .28), rgba(255, 255, 255, .04) 55%, transparent);
}

/* ── Prison wordmark: ivory steel + traced copper. ───────────────────── */

body #marketplace .mh-hero[data-market-theme="prison"] .mh-title {
  position: relative;
  display: grid !important;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto !important;
  overflow: visible;
  color: var(--pr2-ivory) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-title::before {
  content: none !important;
  display: none !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-title::after {
  content: none !important;
  animation: none !important;
}

.mhp2-wordmark,
.mhp2-prison,
.mhp2-market {
  display: inline-flex;
  align-items: baseline;
}

.mhp2-wordmark {
  gap: .13em;
  transform: translate3d(calc(var(--mh-px) * 2px), calc(var(--mh-py) * 1.5px), 0);
  transition: none;
}

.mhp2-prison {
  color: #efe7dc;
  -webkit-text-fill-color: #efe7dc;
  text-shadow: 0 13px 38px rgba(0, 0, 0, .56);
}

.mhp2-market {
  position: relative;
  color: rgba(215, 121, 50, .035);
  -webkit-text-fill-color: rgba(215, 121, 50, .035);
  -webkit-text-stroke: 1.2px rgba(224, 132, 65, .76);
  text-shadow: 0 13px 38px rgba(0, 0, 0, .56), 0 0 28px rgba(215, 121, 50, .055);
}

.mhp2-market::after {
  content: attr(data-word);
  position: absolute;
  inset: 0;
  color: var(--pr2-copper-light);
  -webkit-text-fill-color: var(--pr2-copper-light);
  -webkit-text-stroke: 0 transparent;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  pointer-events: none;
  animation: mhp2Trace 1.25s cubic-bezier(.16, 1, .3, 1) .4s both;
}

.mhp2-letter {
  display: inline-block;
  transform-origin: 50% 72%;
  animation: mhp2Letter .72s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(80ms + var(--mhp2-i) * 42ms);
}

@keyframes mhp2Letter {
  from { opacity: .001; transform: translate3d(0, 24px, 0) rotateX(-24deg); filter: blur(7px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0); filter: blur(0); }
}

@keyframes mhp2Trace {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  18% { opacity: .82; }
  78% { clip-path: inset(0 0 0 0); opacity: .78; }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

.mh-hero[data-market-theme="prison"] .mh-deck {
  color: #e7ddd0 !important;
}

.mh-hero[data-market-theme="prison"] .mh-deck b {
  color: var(--pr2-copper-light) !important;
}

.mh-hero[data-market-theme="prison"] .mh-deck b::after {
  content: none !important;
  animation: none !important;
}

.mh-hero[data-market-theme="prison"] .mh-body {
  color: var(--pr2-muted) !important;
}

/* ── Search: one calm forged control. ────────────────────────────────── */

.mh-hero[data-market-theme="prison"] .mh-console {
  width: min(100%, 790px);
}

.mh-hero[data-market-theme="prison"] .mhp2-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  padding: 0 7px 7px;
  font: 650 8px/1 var(--font-mono, monospace);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #776b60;
}

.mh-hero[data-market-theme="prison"] .mhp2-console-head > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mh-hero[data-market-theme="prison"] .mhp2-console-head .fa-cube {
  color: var(--pr2-copper);
  font-size: 8px;
}

.mh-hero[data-market-theme="prison"] .mhp2-console-head > span:last-child > i {
  width: 5px;
  height: 5px;
  background: #55d68d;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(85, 214, 141, .42);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search {
  min-height: 72px !important;
  height: 72px !important;
  padding: 7px 8px 7px 58px !important;
  overflow: visible;
  background:
    radial-gradient(circle at 15% 0, rgba(215, 121, 50, .05), transparent 34%),
    linear-gradient(180deg, rgba(24, 19, 19, .98), rgba(12, 10, 13, .99)) !important;
  border: 1px solid rgba(232, 148, 80, .21) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px rgba(255, 214, 170, .045), 0 18px 44px rgba(0, 0, 0, .4) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search::before,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-submit::before {
  content: none !important;
  animation: none !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search:focus-within {
  border-color: rgba(240, 161, 92, .48) !important;
  box-shadow: inset 0 1px rgba(255, 214, 170, .06), 0 0 0 4px rgba(215, 121, 50, .075), 0 20px 48px rgba(0, 0, 0, .44) !important;
}

.mh-hero[data-market-theme="prison"] .mh-search-icon i {
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}

.mh-hero[data-market-theme="prison"] .mh-search:focus-within .mh-search-icon i {
  color: var(--pr2-copper-light);
  transform: scale(1.08) rotate(-8deg);
}

.mh-hero[data-market-theme="prison"] .mh-search-icon {
  width: 52px;
  border-right: 0;
}

.mh-hero[data-market-theme="prison"] .mh-search-icon i {
  color: var(--pr2-copper);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search input {
  font-family: var(--font-body, "Inter", sans-serif) !important;
  letter-spacing: 0 !important;
  color: #eee5d8 !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search input::placeholder {
  color: #766c61 !important;
}

.mh-hero[data-market-theme="prison"] .mh-tools {
  gap: 3px;
  margin-right: 7px;
  padding-left: 0;
  border-left: 0;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tool {
  width: 38px;
  height: 38px;
  color: #80756a !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tool:hover,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-tool:focus-visible {
  color: var(--pr2-copper-light) !important;
  background: rgba(215, 121, 50, .085) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-submit {
  height: 56px;
  min-width: 184px;
  padding: 0 21px !important;
  color: #170d08 !important;
  background: #d77a34 !important;
  border: 1px solid #e69a58 !important;
  border-radius: 13px !important;
  box-shadow: inset 0 1px rgba(255, 235, 211, .22), 0 9px 24px rgba(128, 55, 20, .2) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-submit:hover,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-submit:focus-visible {
  color: #130a05 !important;
  background: #e18a43 !important;
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 235, 211, .25), 0 12px 28px rgba(128, 55, 20, .25) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-submit:active {
  transform: scale(.985);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search .search-results {
  padding: 7px !important;
  background: linear-gradient(180deg, rgba(22, 17, 19, .995), rgba(9, 8, 11, .995)) !important;
  border-color: rgba(232, 148, 80, .22) !important;
  border-radius: 14px !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 218, 181, .028) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search .sr-item {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 9px;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-search .sr-item:hover,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-search .sr-item:focus-visible {
  background: rgba(215, 121, 50, .075) !important;
}

.mh-hero[data-market-theme="prison"] .mh-chips {
  align-items: center;
  gap: 4px !important;
  min-height: 40px;
  margin-top: 9px !important;
  border: 0 !important;
}

.mh-hero[data-market-theme="prison"] .mh-chips-label {
  align-self: center;
  min-height: 38px;
  margin: 0;
  padding: 0 7px 0 2px;
  color: #71675d;
  border: 0;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-chips .mh-chip {
  position: relative;
  height: 38px;
  padding: 0 10px !important;
  color: #aa9f90 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-chips .mh-chip::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 5px;
  left: 9px;
  height: 1px;
  background: var(--pr2-copper);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: .85;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-chips .mh-chip:hover,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-chips .mh-chip:focus-visible {
  color: #efd0b1 !important;
  background: rgba(215, 121, 50, .035) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-chips .mh-chip:hover::after,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-chips .mh-chip:focus-visible::after {
  transform: scaleX(1);
}

/* ── CTA: one quiet utility surface instead of two glowing buttons. ───── */

.mh-hero[data-market-theme="prison"] .mh-cta {
  width: min(100%, 790px);
  gap: 0;
  margin-top: 17px;
  padding: 5px;
  background: rgba(17, 13, 16, .72);
  border: 1px solid rgba(232, 148, 80, .14);
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn {
  flex: 1 1 50%;
  min-height: 48px;
  padding: 0 17px !important;
  color: #cec2b4 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-solid {
  justify-content: center;
  color: #edb17f !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-ghost {
  border-left: 1px solid rgba(232, 148, 80, .12) !important;
  border-radius: 0 10px 10px 0 !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn > i {
  color: #d38345;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn:hover,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn:focus-visible {
  color: #f1e4d5 !important;
  background: rgba(215, 121, 50, .065) !important;
  transform: none;
  box-shadow: none !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-solid:hover > i,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-solid:focus-visible > i {
  transform: scale(1.1) rotate(-4deg);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-ghost:hover > i,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-ghost:focus-visible > i {
  transform: translateX(4px);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-solid.is-copied {
  background: rgba(79, 197, 122, .055) !important;
}

/* ── Popular board and ledger. ───────────────────────────────────────── */

.mh-hero[data-market-theme="prison"] .mh-board {
  padding-top: clamp(22px, 1.9vw, 28px);
}

.mh-hero[data-market-theme="prison"] .mh-board-grid {
  counter-reset: pr2-tile;
  gap: clamp(8px, .78vw, 12px);
}

.mh-hero[data-market-theme="prison"] .mh-board-grid > li {
  position: relative;
  min-width: 0;
  counter-increment: pr2-tile;
}

.mh-hero[data-market-theme="prison"] .mh-board-grid > li::before {
  content: "0" counter(pr2-tile);
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 13px;
  font: 600 8px/1 var(--font-mono, monospace);
  letter-spacing: .08em;
  color: #6e6258;
  pointer-events: none;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-board-head h2 {
  color: var(--pr2-copper-light) !important;
}

.mh-hero[data-market-theme="prison"] .mh-board-head .mh-rule {
  background: linear-gradient(90deg, rgba(232, 148, 80, .24), rgba(232, 148, 80, .04) 72%, transparent);
}

.mh-hero[data-market-theme="prison"] .mh-board-count {
  color: #71665c;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile {
  min-height: 188px;
  gap: 8px;
  padding: 24px 10px 15px !important;
  background:
    radial-gradient(ellipse 76% 54% at 50% 0, rgba(215, 121, 50, .035), transparent 72%),
    linear-gradient(180deg, rgba(21, 17, 18, .91), rgba(9, 8, 11, .96)) !important;
  border: 1px solid rgba(232, 148, 80, .13) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px rgba(255, 218, 181, .027) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile::before {
  height: 45%;
  background: radial-gradient(ellipse 52% 90% at 50% 100%, rgba(var(--rar), .11), transparent 76%);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 1px;
  background: rgb(var(--rar));
  transform: scaleX(.16);
  opacity: .44;
  transition: transform .36s cubic-bezier(.16, 1, .3, 1), opacity .22s ease;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:hover,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:focus-visible {
  border-color: rgba(var(--rar), .34) !important;
  transform: translateY(-4px);
  background:
    radial-gradient(ellipse 78% 58% at 50% 0, rgba(var(--rar), .06), transparent 72%),
    linear-gradient(180deg, rgba(26, 21, 21, .96), rgba(11, 9, 12, .98)) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42), 0 0 24px rgba(var(--rar), .07) !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:hover::after,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:focus-visible::after {
  transform: scaleX(1);
  opacity: .8;
}

.mh-hero[data-market-theme="prison"] .mh-tile-art::before {
  inset: -6%;
  background: radial-gradient(circle, rgba(var(--rar), .16), rgba(var(--rar), .025) 48%, transparent 70%);
}

.mh-hero[data-market-theme="prison"] .mh-tile-art {
  position: relative;
  width: 78px;
  height: 78px;
  isolation: isolate;
}

.mh-hero[data-market-theme="prison"] .mh-tile-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 8px;
  background: linear-gradient(90deg, transparent, rgba(var(--rar), .24) 18% 82%, transparent);
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
  filter: blur(2px);
  opacity: .7;
  transition: transform .36s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}

.mh-hero[data-market-theme="prison"] .mh-tile-art img {
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .78)) drop-shadow(0 0 10px rgba(var(--rar), .23)) brightness(1.04) saturate(1.02);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:hover .mh-tile-art img,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:focus-visible .mh-tile-art img {
  transform: translate3d(0, -6px, 0) scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 10px 11px rgba(0, 0, 0, .8)) drop-shadow(0 0 15px rgba(var(--rar), .34)) brightness(1.08) saturate(1.08);
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:hover .mh-tile-art::after,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile:focus-visible .mh-tile-art::after {
  transform: scaleX(1.2);
  opacity: 1;
}

.mh-hero[data-market-theme="prison"] .mh-tile-name {
  color: #ece2d5;
  font-weight: 650;
}

.mh-hero[data-market-theme="prison"] .mh-tile-cat {
  color: #75695e;
}

.mh-hero[data-market-theme="prison"] .mh-tile-rarity {
  padding: 3px 8px;
  color: rgb(var(--rar));
  background: rgba(var(--rar), .055);
  border-color: rgba(var(--rar), .22);
  border-radius: 6px;
}

.mh-hero[data-market-theme="prison"] .mh-ledger {
  background: linear-gradient(180deg, rgba(18, 14, 17, .58), rgba(9, 8, 11, .3));
  border-top-color: rgba(232, 148, 80, .14);
  border-bottom: 1px solid rgba(232, 148, 80, .055);
  box-shadow: inset 0 1px rgba(255, 218, 181, .014);
}

.mh-hero[data-market-theme="prison"] .mh-cell + .mh-cell::before {
  background: linear-gradient(180deg, transparent, rgba(232, 148, 80, .085) 30% 70%, transparent);
}

.mh-hero[data-market-theme="prison"] .mh-cell dt,
.mh-hero[data-market-theme="prison"] .mh-cell-note dd {
  color: #81756a !important;
}

.mh-hero[data-market-theme="prison"] .mh-cell dd,
body #marketplace .mh-hero[data-market-theme="prison"] .mh-live strong {
  color: #e7dccf !important;
}

body #marketplace .mh-hero[data-market-theme="prison"] .mh-live:not([data-titan-state="online"]) .mh-live-label {
  color: #81756a !important;
  background: rgba(215, 121, 50, .045) !important;
  border-color: rgba(232, 148, 80, .11);
}

/* ── Full route material system. ─────────────────────────────────────── */

#marketplace > .section-spacing {
  padding: clamp(38px, 4.8vw, 68px) 0 !important;
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

/* Quiet, compact feedback for endpoints which currently have no rows. */
body #marketplace .mhp2-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 78px;
  padding: 15px 18px;
  color: #9f9487;
  background: linear-gradient(90deg, rgba(215, 121, 50, .045), rgba(15, 12, 15, .42) 42%, transparent);
  border-top: 1px solid rgba(232, 148, 80, .12);
  border-bottom: 1px solid rgba(232, 148, 80, .055);
}

body #marketplace .mhp2-empty > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  color: var(--pr2-copper-light);
  font-size: 15px;
  background: rgba(215, 121, 50, .065);
  border: 1px solid rgba(232, 148, 80, .15);
  border-radius: 10px;
  opacity: .84;
}

body #marketplace .mhp2-empty-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body #marketplace .mhp2-empty-copy strong {
  color: #d8cdc0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
}

body #marketplace .mhp2-empty-copy span {
  color: #756b61;
  font-size: 11px;
  line-height: 1.45;
}

body #marketplace .mhp2-empty.is-error > i {
  color: #d98b68;
  background: rgba(182, 74, 47, .07);
  border-color: rgba(217, 139, 104, .15);
}

body #marketplace .empty-state {
  width: min(100%, 560px);
  max-width: 560px;
  padding: 28px 24px !important;
  background: linear-gradient(180deg, rgba(21, 16, 18, .72), rgba(10, 9, 12, .82)) !important;
  border: 1px solid rgba(232, 148, 80, .13) !important;
  border-radius: 15px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
}

body #marketplace .empty-state > i {
  color: var(--pr2-copper-light) !important;
  font-size: 28px !important;
  opacity: .54 !important;
}

body #marketplace .empty-state .empty-cta {
  min-height: 38px;
  color: #e4ad80 !important;
  background: rgba(215, 121, 50, .045) !important;
  border-color: rgba(232, 148, 80, .2) !important;
  border-radius: 10px !important;
}

body #marketplace .empty-state .empty-cta:hover,
body #marketplace .empty-state .empty-cta:focus-visible {
  color: #f3dfcd !important;
  background: rgba(215, 121, 50, .1) !important;
  border-color: rgba(240, 161, 92, .38) !important;
}

#marketplace > .section-spacing:has(.trending-grid > .mhp2-empty:only-child),
#marketplace > .section-spacing:has(.flip-grid > .mhp2-empty:only-child),
#marketplace > .section-spacing:has(.collections-grid > .mhp2-empty:only-child),
#marketplace > .section-spacing:has(.sellers-grid > .mhp2-empty:only-child) {
  padding-block: clamp(28px, 3.4vw, 46px) !important;
}

body #marketplace :is(#auctionGrid, #toolsNav, .section-spacing) {
  scroll-margin-top: calc(var(--nav-h, 64px) + 76px);
}

body #marketplace :is(.glass, .item-card, .auction-card, .collection-card, .seller-card, .event-card, .deal-card, .tool-card, .stat-card) {
  background:
    radial-gradient(ellipse 80% 54% at 50% 0, rgba(215, 121, 50, .028), transparent 72%),
    linear-gradient(180deg, rgba(22, 17, 19, .88), rgba(10, 9, 12, .94)) !important;
  border-color: rgba(232, 148, 80, .14) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 218, 181, .028) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body #marketplace :is(.glass, .item-card, .auction-card, .collection-card, .seller-card, .event-card, .deal-card, .tool-card):hover {
  border-color: rgba(240, 161, 92, .34) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .36), 0 0 28px rgba(215, 121, 50, .08), inset 0 1px rgba(255, 218, 181, .04) !important;
}

body #marketplace .section-header {
  gap: 12px !important;
  margin-bottom: 24px !important;
}

body #marketplace .section-header > i {
  width: 42px !important;
  height: 42px !important;
  color: var(--pr2-copper-light) !important;
  background: linear-gradient(145deg, rgba(215, 121, 50, .12), rgba(215, 121, 50, .035)) !important;
  border: 1px solid rgba(232, 148, 80, .2) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px rgba(255, 218, 181, .035) !important;
  animation: none !important;
}

body #marketplace .section-header h2 {
  color: #eee4d8 !important;
  font-size: clamp(22px, 2.6vw, 31px) !important;
  letter-spacing: .015em !important;
}

body #marketplace .section-header h2 .accent {
  color: var(--pr2-copper-light) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

body #marketplace .section-header::after {
  background: linear-gradient(90deg, rgba(215, 121, 50, .68), rgba(232, 148, 80, .08), transparent) !important;
}

body #marketplace .section-header .subtitle {
  color: #81776d !important;
}

body #marketplace .ticker {
  margin: 0 !important;
  background: linear-gradient(90deg, rgba(215, 121, 50, .055), rgba(8, 8, 13, .5) 22% 78%, rgba(215, 121, 50, .055)) !important;
  border-color: rgba(232, 148, 80, .11) !important;
}

body #marketplace .cat-row {
  gap: 6px !important;
  padding: 7px !important;
  background: linear-gradient(180deg, rgba(20, 15, 18, .72), rgba(9, 8, 11, .78));
  border: 1px solid rgba(232, 148, 80, .1);
  border-radius: 15px;
  box-shadow: inset 0 1px rgba(255, 218, 181, .025);
}

body #marketplace > .section-spacing:has(.cat-row:empty) {
  display: none !important;
}

body #marketplace .cat-pill .mc-icon-xs,
body #marketplace .cat-pill .mc-icon-sm {
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55));
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), filter .2s ease;
}

body #marketplace .cat-pill:hover .mc-icon-xs,
body #marketplace .cat-pill:hover .mc-icon-sm,
body #marketplace .cat-pill:focus-visible .mc-icon-xs,
body #marketplace .cat-pill:focus-visible .mc-icon-sm {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .62));
}

body #marketplace .ticker-track {
  animation-duration: 52s !important;
  animation-play-state: paused !important;
}

body #marketplace .ticker.mhp2-visible .ticker-track {
  animation-play-state: running !important;
}

body #marketplace .ticker.is-empty {
  min-height: 46px;
}

body #marketplace .ticker.is-empty .ticker-track {
  justify-content: center;
  width: 100%;
  min-width: 100%;
  animation: none !important;
  transform: none !important;
}

body #marketplace .ticker.is-empty .ticker-item {
  color: #83786d;
}

body #marketplace .ticker.is-empty .ticker-item > i {
  color: var(--pr2-copper);
}

body #marketplace .ticker.is-empty .ticker-item strong {
  color: #b8ac9f !important;
  font-weight: 550;
}

body #marketplace .ticker.is-empty .ti-price {
  color: #55c987 !important;
  font: 650 9px/1 var(--font-mono, monospace);
  letter-spacing: .12em;
  text-transform: uppercase;
}

body #marketplace :is(.cat-pill, .qf-chip, .filter-btn, .tab-btn) {
  min-height: 38px;
  color: #aea396 !important;
  background: rgba(215, 121, 50, .025) !important;
  border: 1px solid rgba(232, 148, 80, .13) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

body #marketplace :is(.cat-pill, .qf-chip, .filter-btn, .tab-btn):hover,
body #marketplace :is(.cat-pill, .qf-chip, .filter-btn, .tab-btn):focus-visible {
  color: #edc09b !important;
  background: rgba(215, 121, 50, .07) !important;
  border-color: rgba(240, 161, 92, .32) !important;
  transform: translateY(-1px);
}

body #marketplace :is(.cat-pill, .qf-chip, .filter-btn, .tab-btn).active {
  color: #f2dfcd !important;
  background: rgba(215, 121, 50, .12) !important;
  border-color: rgba(240, 161, 92, .43) !important;
  box-shadow: inset 0 1px rgba(255, 218, 181, .045) !important;
}

body #marketplace .filters-bar {
  top: var(--nav-h, 64px) !important;
  padding: 11px 0 !important;
  margin-bottom: 0 !important;
  background: linear-gradient(180deg, rgba(14, 11, 14, .98), rgba(8, 8, 13, .98)) !important;
  border-block: 1px solid rgba(232, 148, 80, .1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body #marketplace .filters-row {
  gap: 10px !important;
}

body #marketplace .filter-group {
  gap: 7px !important;
}

body #marketplace .filter-group label {
  font: 650 9px/1 var(--font-mono, monospace) !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #81756a !important;
}

body #marketplace :is(.filter-select, .filter-input) {
  min-height: 40px;
  border-radius: 10px !important;
}

body #marketplace :is(.filter-select, .filter-input, input, select, textarea) {
  color: #ddd2c5 !important;
  background: rgba(13, 10, 13, .9) !important;
  border-color: rgba(232, 148, 80, .15) !important;
}

body #marketplace :is(.filter-select, .filter-input, input, select, textarea):focus {
  border-color: rgba(240, 161, 92, .5) !important;
  box-shadow: 0 0 0 4px rgba(215, 121, 50, .08) !important;
}

body #marketplace .auction-grid {
  gap: clamp(13px, 1.8vw, 20px) !important;
}

body #marketplace .auction-card {
  border-radius: 16px !important;
  animation: cardIn .46s cubic-bezier(.16, 1, .3, 1) both;
  transform-style: flat;
  will-change: auto;
}

body #marketplace .auction-card:hover {
  transform: translateY(-4px) !important;
}

body #marketplace .auction-card .card-icon-wrap {
  background: radial-gradient(circle at 50% 28%, rgba(215, 121, 50, .09), rgba(255, 255, 255, .025) 66%) !important;
  border-color: rgba(232, 148, 80, .14) !important;
}

body #marketplace .auction-card .card-price,
body #marketplace :is(.trend-price, .rv-price, .pi-val, .port-total) {
  color: var(--pr2-copper-light) !important;
  text-shadow: none !important;
}

body #marketplace :is(.card-btn-buy, .modal-btn-primary, .load-more-btn, .cb-compare) {
  color: #150c07 !important;
  background: #d77a34 !important;
  border-color: #df8e4c !important;
  box-shadow: 0 10px 24px rgba(128, 55, 20, .17) !important;
}

body #marketplace :is(.card-btn-buy, .modal-btn-primary, .load-more-btn, .cb-compare):hover {
  background: #e18a43 !important;
  box-shadow: 0 13px 28px rgba(128, 55, 20, .22) !important;
}

body #marketplace .card-btn-watch {
  border-color: rgba(232, 148, 80, .13) !important;
}

body #marketplace :is(.rarity-border-legendary, .rarity-border-mythic) {
  animation: none !important;
}

body #marketplace :is(.rarity-border-legendary, .rarity-border-mythic)::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

body #marketplace .quick-filters,
body #marketplace .tabs-nav {
  gap: 7px;
  padding: 6px;
  background: rgba(10, 8, 11, .7) !important;
  border: 1px solid rgba(232, 148, 80, .09) !important;
  border-radius: 14px !important;
}

body #marketplace .modal {
  background: linear-gradient(155deg, #151014, #09080b) !important;
  border-color: rgba(232, 148, 80, .21) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .64), 0 0 0 1px rgba(240, 161, 92, .035) !important;
}

body.market-prison-page footer {
  background: linear-gradient(180deg, rgba(8, 8, 13, .2), rgba(10, 7, 9, .82));
  border-top-color: rgba(232, 148, 80, .1) !important;
}

/* ── Performance ownership: one status pulse, route loops only in view. ─ */

.mh-hero[data-market-theme="prison"] :is(.mh-dome, .mh-vault, .mh-cool, .mh-fade) {
  animation: none !important;
  will-change: auto !important;
}

/* Prison owns a dedicated compositor scene (`.pma-stage`). The generic market
   atmosphere underneath duplicated beams, sigils and embers, so it cost a
   second full hero raster while remaining visually indistinguishable. */
.mh-hero[data-market-theme="prison"] > .mh-atmos {
  display: none !important;
}

.mh-hero[data-market-theme="prison"] :is(.mh-title, .mh-title::after, .mh-submit::before, .mh-deck b::after) {
  animation: none !important;
}

html:not([data-market-health]) .mh-hero[data-market-theme="prison"] .mh-cell-num dd::after,
.mh-hero[data-market-theme="prison"] .skeleton,
body.market-prison-page .skeleton {
  animation: none !important;
  background: rgba(232, 148, 80, .09) !important;
}

.mh-hero[data-market-theme="prison"]:is(.mh-offscreen, .mh-paused) .mhp2-letter,
.mh-hero[data-market-theme="prison"]:is(.mh-offscreen, .mh-paused) .mhp2-market::after {
  animation-play-state: paused !important;
}

/* ── Mobile. ─────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  body #marketplace .mh-hero[data-market-theme="prison"] {
    min-height: 0 !important;
    padding: 24px 0 0 !important;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-title {
    font-size: clamp(31px, 9.2vw, 43px) !important;
    letter-spacing: -.02em !important;
  }

  .mhp2-wordmark {
    gap: .14em;
  }

  .mh-hero[data-market-theme="prison"] .mh-mark {
    min-width: 0;
  }

  .mh-hero[data-market-theme="prison"] .mh-mark em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-search {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 16px !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-search-icon {
    top: 0;
    left: 0;
    width: 52px;
    height: 60px;
    transform: none;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-search input {
    height: 60px !important;
    padding: 0 96px 0 56px !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-tools {
    top: 30px;
    right: 7px;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-submit {
    width: calc(100% - 12px);
    height: 52px;
    min-width: 0;
    margin: 0 6px 6px !important;
    border-radius: 11px !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-chips {
    padding-right: 26px;
    overflow-x: auto;
    justify-content: flex-start !important;
    scroll-padding-inline: 8px 26px;
    flex-wrap: nowrap;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 23px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 23px), transparent 100%);
  }

  .mh-hero[data-market-theme="prison"] .mh-chips-label,
  body #marketplace .mh-hero[data-market-theme="prison"] .mh-chips .mh-chip {
    flex: 0 0 auto;
  }

  .mh-hero[data-market-theme="prison"] .mh-board-grid {
    gap: 8px;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-tile {
    min-height: 172px;
  }

  #marketplace > .section-spacing {
    padding: 34px 0 !important;
    contain-intrinsic-size: auto 360px;
  }

  body #marketplace .mhp2-empty {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    min-height: 70px;
    padding: 12px 13px;
  }

  body #marketplace .mhp2-empty > i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  body #marketplace .filters-bar {
    position: static !important;
    margin-bottom: 0 !important;
  }

  body #marketplace .filters-row {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  body #marketplace :is(.cat-row, .quick-filters, .tabs-nav) {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  body #marketplace :is(.quick-filters, .tabs-nav) {
    padding-right: 28px !important;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
  }

  body.market-prison-page .back-to-top {
    right: 14px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(14, 10, 13, .94) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body #marketplace :is(#auctionGrid, #toolsNav, .section-spacing) {
    scroll-margin-top: calc(var(--nav-h, 64px) + 18px);
  }

  body #marketplace .auction-card {
    border-radius: 15px !important;
  }
}

@media (max-width: 460px) {
  body #marketplace .mh-hero[data-market-theme="prison"] .container,
  body #marketplace .mh-hero[data-market-theme="prison"] > .mh-container {
    width: calc(100% - 30px) !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-cta {
    gap: 0;
    padding: 5px;
  }

  .mh-hero[data-market-theme="prison"] .mh-chips-label {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn {
    flex-basis: auto;
    width: 100%;
    border-radius: 10px 10px 0 0 !important;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-btn-ghost {
    border-top: 1px solid rgba(232, 148, 80, .12) !important;
    border-left: 0 !important;
    border-radius: 0 0 10px 10px !important;
  }

  body.market-prison-page #cookieBanner.cookie-banner {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 84px 40px !important;
    width: auto !important;
    min-height: 52px !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    text-align: left !important;
    border-radius: 14px !important;
  }

  body.market-prison-page #cookieBanner .cookie-text {
    display: flex !important;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    font-size: 0 !important;
    white-space: nowrap;
  }

  body.market-prison-page #cookieBanner .cookie-text::before {
    content: "Cookies · ";
    flex: none;
    font: 650 11px/1.1 var(--font-body, "Inter", sans-serif);
    color: #e7dccf;
  }

  body.market-prison-page #cookieBanner .cookie-text a {
    min-width: 0;
    overflow: hidden;
    font: 600 11px/1.1 var(--font-body, "Inter", sans-serif);
    text-overflow: ellipsis;
  }

  body.market-prison-page #cookieBanner .cookie-btn {
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }

  body.market-prison-page #cookieBanner .cookie-btn[data-cookie-choice="accept"]::after {
    content: none;
  }
}

/* ── 2K / 4K: preserve scale without creating a 2100px empty hero. ───── */

@media (min-width: 2400px) {
  body #marketplace .mh-hero[data-market-theme="prison"] {
    min-height: 1520px !important;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .container,
  body #marketplace .mh-hero[data-market-theme="prison"] > .mh-container {
    width: min(calc(100% - 220px), 2200px) !important;
    max-width: 2200px !important;
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-title {
    font-size: clamp(138px, 4.5vw, 174px) !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-cool::before,
  .mh-hero[data-market-theme="prison"] .mh-cool::after {
    top: 330px;
    width: 290px;
    height: 360px;
    padding-bottom: 24px;
    font-size: 11px;
    background-size: 168px, auto, auto;
  }

  .mh-hero[data-market-theme="prison"] .mh-cool::before {
    right: auto;
    left: max(46px, calc(50% - 1580px));
  }

  .mh-hero[data-market-theme="prison"] .mh-cool::after {
    right: max(46px, calc(50% - 1580px));
    left: auto;
  }

  .mh-hero[data-market-theme="prison"] .mh-deck {
    font-size: 36px !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-body {
    font-size: 20px !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-console,
  .mh-hero[data-market-theme="prison"] .mh-cta {
    width: min(100%, 920px);
  }

  body #marketplace .mh-hero[data-market-theme="prison"] .mh-search {
    height: 78px !important;
    min-height: 78px !important;
  }

  .mh-hero[data-market-theme="prison"] .mh-tile-art {
    width: 92px;
    height: 92px;
  }

  .mh-hero[data-market-theme="prison"] .mh-tile-name {
    font-size: 18px;
  }

  .mh-hero[data-market-theme="prison"] .mh-cell dd,
  body #marketplace .mh-hero[data-market-theme="prison"] .mh-live strong {
    font-size: 34px !important;
  }
}
