/* O Jailbreaks — 🛒 [O]Market on the website (site v57): the market page (market/, mkt.js) and its spot on the home
   screen (index.html, mkt-home.js). Loaded after theme.css, in its look: black, white buttons, thin lines, one blue for
   what you can act on, green / amber / red only when they say something. Classes start mk- (the market page) and
   mkt- (the home screen), (v60) rl- (the showcase of boosted shops) and mm- (the middleman). Nothing here is called ad…, banner, sponsor, promo, boost, spot or offer: ad blockers hide
   anything that sounds like an advert, and this is the site's own shop. */

/* ---------- The page ---------- */
.mk { max-width: 1180px; padding-bottom: 40px; }
.mk-hero { margin-bottom: 26px; }
.mk-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.mk-stats > div { display: grid; gap: 2px; min-width: 120px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.mk-stats dt { font-size: 12.5px; color: var(--muted); }
.mk-stats dd { margin: 0; font: 600 20px/1.25 var(--font); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Search, sort, and the shops as chips */
.mk-tools { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: grid; gap: 10px; margin: 0 0 18px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mk-bar { display: flex; gap: 8px; }
.mk-search { position: relative; flex: 1 1 auto; min-width: 0; }
.mk-search .ico { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mk-search input, .mk-sort {
  width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font: 400 15px var(--font); color: var(--text); outline: none; transition: border-color .2s;
}
.mk-search input::placeholder { color: var(--dim); }
.mk-search input:focus, .mk-sort:focus { border-color: var(--line-3); }
.mk-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.mk-sort { flex: 0 0 auto; width: auto; padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; }
.mk-sort option { background: #111; color: var(--text); }
.mk-shops { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; margin: 0 -1px; }
.mk-shops::-webkit-scrollbar { display: none; }
.mk-chip {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; font: 500 13.5px var(--font); color: var(--muted); white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.mk-chip:hover { color: var(--text); border-color: var(--line-3); }
.mk-chip[aria-pressed="true"] { background: #fafafa; border-color: #fafafa; color: #000; }
.mk-chip img { width: 20px; height: 20px; border-radius: 50%; }
.mk-chip small { font: 500 12px var(--mono); color: inherit; opacity: .7; }

/* One shop picked */
.mk-shop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 0 18px; padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + 210px); } /* (v60: under the stuck search bar) */
.mk-shop-av { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); object-fit: cover; display: grid; place-items: center; font: 600 22px var(--mono); color: var(--muted); }
.mk-shop h2 { margin: 0; font: 600 20px/1.3 var(--font); letter-spacing: -.02em; color: var(--text); }
.mk-shop p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.mk-shop-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* The grid of things for sale */
.mk-count { min-height: 20px; margin: 0 0 10px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mk-grid > li { min-width: 0; animation: mb-row .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.mk-tile {
  display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, transform .25s var(--ease);
}
.mk-tile:hover { border-color: var(--line-3); transform: translateY(-2px); }
.mk-tile:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.mk-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0d0d; border-bottom: 1px solid var(--line); }
.mk-thumb img, .mk-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.mk-tile:hover .mk-thumb img, .mk-tile:hover .mk-thumb video { transform: scale(1.03); }
.mk-blank { display: grid; place-items: center; width: 100%; height: 100%; font: 600 46px/1 var(--mono); color: #2b2b2b; letter-spacing: -.04em; text-transform: uppercase; }
.mk-play { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(0, 0, 0, .72); font: 500 12px var(--font); color: #fff; }
.mk-play .ico { width: 15px; height: 15px; }
.mk-more { position: absolute; right: 10px; bottom: 10px; height: 26px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: rgba(0, 0, 0, .72); font: 500 12px var(--font); color: #fff; }
.mk-more .ico { width: 14px; height: 14px; }
.mk-tags { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.mk-tag { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .72); font: 500 11.5px var(--font); color: #fff; white-space: nowrap; }
.mk-tag .ico { width: 13px; height: 13px; }
.mk-tag.is-first { background: var(--accent-1); border-color: var(--accent-1); }
.mk-tag.is-out { background: rgba(239, 68, 68, .85); border-color: transparent; }
.mk-tile-body { display: grid; align-content: start; gap: 4px; padding: 13px 14px 14px; min-width: 0; }
.mk-tile-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 15.5px/1.35 var(--font); letter-spacing: -.01em; color: var(--text); }
.mk-tile-shop { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.mk-tile-shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-rate { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mk-rate .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; color: #fafafa; }
.mk-tile-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.mk-price { font: 600 17px/1.2 var(--font); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.mk-price.is-custom { font-size: 14px; font-weight: 500; color: var(--text-2); }
.mk-eta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.mk-eta .ico { width: 14px; height: 14px; }
.mk-tile.is-loading { min-height: 290px; cursor: default; animation: mk-pulse 1.1s ease-in-out infinite alternate; }
@keyframes mk-pulse { from { opacity: .45; } to { opacity: 1; } }
.mk-tile.is-loading:hover { transform: none; border-color: var(--line); }
.mk-empty { display: grid; justify-items: start; gap: 8px; padding: 28px; border: 1px dashed var(--line-2); border-radius: 14px; }
.mk-empty h3 { margin: 0; font: 600 18px/1.3 var(--font); color: var(--text); }
.mk-empty p { margin: 0; max-width: 52ch; font-size: 14.5px; color: var(--muted); }

/* Selling */
.mk-sell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 36px 0 14px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.mk-sell h2 { margin: 0 0 4px; font: 600 18px/1.3 var(--font); letter-spacing: -.02em; text-transform: none; color: var(--text); }
.mk-sell p { margin: 0; max-width: 60ch; font-size: 14.5px; color: var(--muted); }

/* ---------- One item ---------- */
.mk-item {
  width: min(1060px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 18px; background: #070707; color: var(--text);
}
.mk-item::backdrop { background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mk-item[open] { animation: mk-in .32s var(--ease) backwards; }
@keyframes mk-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.mk-item-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); max-height: calc(100dvh - 40px); }
.mk-x { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(0, 0, 0, .7); color: var(--text); cursor: pointer; }
.mk-x:hover { border-color: var(--line-3); }
.mk-x .ico { width: 18px; height: 18px; }
.mk-gallery { display: grid; grid-template-rows: auto auto; align-content: start; gap: 10px; min-width: 0; padding: 14px; background: #000; border-right: 1px solid var(--line); }
.mk-stage { position: relative; display: grid; place-items: center; min-height: 260px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #0b0b0b; }
.mk-stage img, .mk-stage video, .mk-stage iframe { width: 100%; height: 100%; object-fit: contain; border: 0; display: block; }
.mk-stage .mk-blank { font-size: 92px; }
.mk-yt { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.mk-yt img { object-fit: cover; opacity: .85; }
.mk-yt .mk-yt-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 48px; border-radius: 14px; background: #ff0033; transform: translate(-50%, -50%); color: #fff; }
.mk-yt .mk-yt-play::before { content: ''; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.mk-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; transform: translateY(-50%); cursor: pointer; }
.mk-nav:hover { border-color: var(--line-3); }
.mk-nav.prev { left: 10px; } .mk-nav.next { right: 10px; }
.mk-nav .ico { width: 18px; height: 18px; }
.mk-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.mk-thumbs button { position: relative; flex: 0 0 auto; width: 64px; height: 64px; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: #0b0b0b; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.mk-thumbs button:hover { opacity: .9; }
.mk-thumbs button[aria-current="true"] { opacity: 1; border-color: #fafafa; }
.mk-thumbs img, .mk-thumbs video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-thumbs .ico { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); color: #fff; }
.mk-info { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 26px 26px 24px; overflow-y: auto; overscroll-behavior: contain; }
.mk-shopline { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: calc(100% - 48px); padding: 0; border: 0; background: none; font: 500 13.5px var(--font); color: var(--muted); cursor: pointer; }
.mk-shopline:hover { color: var(--text); }
.mk-shopline img { width: 22px; height: 22px; border-radius: 50%; }
.mk-shopline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-item-name { margin: 0; padding-right: 40px; font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--font); letter-spacing: -.03em; color: var(--text); text-transform: none; overflow-wrap: anywhere; }
.mk-item-price { margin: 0; font: 600 26px/1.2 var(--font); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.mk-item-price.is-custom { font-size: 17px; font-weight: 500; color: var(--text-2); }
.mk-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mk-facts li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); }
.mk-facts .ico { width: 15px; height: 15px; color: var(--muted); }
.mk-facts .is-warn { border-color: rgba(245, 158, 11, .4); color: var(--amber); }
.mk-facts .is-bad { border-color: rgba(239, 68, 68, .45); color: var(--red); }
.mk-facts .is-good { border-color: rgba(34, 197, 94, .35); color: var(--green); }
.mk-facts .is-good .ico, .mk-facts .is-warn .ico, .mk-facts .is-bad .ico { color: inherit; }
.mk-item-about { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.mk-item-about:empty { display: none; }
.mk-kw { display: flex; flex-wrap: wrap; gap: 5px; margin: -4px 0 0; padding: 0; list-style: none; }
.mk-kw li { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font: 500 12px var(--mono); color: var(--muted); }

/* Buy */
.mk-buy { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.mk-buy:empty { display: none; }
.mk-buy p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.mk-buy p b { color: var(--text); font-weight: 600; }
.mk-buy-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-buy-acts .pp-mbtn { flex: 1 1 auto; justify-content: center; }
.mk-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 50px; padding: 0 18px; border: 1px solid #fafafa; border-radius: 10px;
  background: #fafafa; font: 600 16px var(--font); color: #000; cursor: pointer; transition: background .2s, transform .2s;
}
.mk-go:hover { background: #e5e5e5; }
.mk-go:active { transform: scale(.99); }
.mk-go[disabled] { opacity: .55; cursor: progress; }
.mk-go .ico { width: 19px; height: 19px; }
.mk-go.is-blue { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.mk-go.is-blue:hover { background: #2563eb; }
.mk-go.ghost { background: transparent; border-color: var(--line-3); color: var(--text); }
.mk-go.ghost:hover { background: var(--surface-2); }
.mk-pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mk-done { display: flex; align-items: center; gap: 10px; font: 600 15.5px var(--font); color: var(--text); }
.mk-done .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(34, 197, 94, .14); color: var(--green); }
.mk-buy .mk-err { color: var(--red); }
.mk-buy .mk-small { font-size: 13px; color: var(--dim); }
.mk-buy a:not(.pp-mbtn):not(.mk-go) { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }

/* The shop, under Buy */
.mk-seller { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.mk-seller:empty { display: none; }
.mk-seller-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mk-seller-head img, .mk-seller-head .mk-shop-av { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; flex: 0 0 auto; }
.mk-seller-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15.5px/1.3 var(--font); color: var(--text); }
.mk-seller-head small { display: block; font-size: 13px; color: var(--muted); }
.mk-seller p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.mk-seller-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 860px) {
  .mk-item-in { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .mk-gallery { border-right: 0; border-bottom: 1px solid var(--line); }
  .mk-stage { min-height: 0; }
  .mk-info { overflow: visible; }
}
@media (max-width: 640px) {
  .mk-tools { position: relative; top: auto; padding: 8px; border-radius: 12px; } /* (not stuck to the top: too tall for a phone) */
  .mk-sort { max-width: 132px; padding-left: 12px; font-size: 14px; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk-tile-body { padding: 10px 11px 12px; }
  .mk-tile-name { font-size: 14.5px; }
  .mk-price { font-size: 15.5px; }
  .mk-eta { display: none; }
  .mk-tags .mk-tag:not(.is-first):not(.is-out) { display: none; }
  .mk-shop { grid-template-columns: auto minmax(0, 1fr); scroll-margin-top: calc(var(--header-h) + 12px); }
  .mk-shop-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .mk-item { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .mk-item-in { max-height: 100dvh; height: 100dvh; }
  .mk-gallery { padding: 0 0 10px; }
  .mk-stage { border-radius: 0; }
  .mk-thumbs { padding: 0 12px; }
  .mk-info { padding: 18px 16px 28px; }
  .mk-stats > div { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
  .mk-stats dd { font-size: 17px; }
}
@media (max-width: 360px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-tile, .mk-thumb img, .mk-thumb video { transition: none; }
  .mk-item[open] { animation: none; }
}

/* ==========================================================================
   The home screen: [O]Market's own section (index.html #market, mkt-home.js)
   ========================================================================== */
.nav-mkt { position: relative; }
.nav-mkt::after { content: ''; position: absolute; top: 6px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); }
.mkt-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 18px; padding: 5px 12px 5px 6px; border: 1px solid rgba(59, 130, 246, .45);
  border-radius: 999px; background: rgba(59, 130, 246, .08); font: 500 13px var(--font); color: var(--text-2); text-decoration: none; transition: border-color .2s, background .2s;
}
.mkt-pill:hover { border-color: var(--accent-1); background: rgba(59, 130, 246, .14); color: var(--text); }
.mkt-pill b { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--accent-1); font: 600 11px var(--font); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.mkt-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-pill .ico { flex: 0 0 auto; width: 15px; height: 15px; transition: transform .25s var(--ease); }
.mkt-pill:hover .ico { transform: translate(2px, -2px); }

.mkt-home { position: relative; z-index: 1; max-width: var(--max, 1440px); margin: 0 auto; padding: 110px var(--gutter, 24px) 0; }
.mkt-frame { position: relative; overflow: hidden; padding: 40px; border: 1px solid var(--line-2); border-radius: 22px; background: #050505; }
.mkt-frame::before { /* a thin blue line along the top: the one accent */
  content: ''; position: absolute; left: 40px; right: 40px; top: -1px; height: 2px; background: var(--accent-1); border-radius: 0 0 2px 2px;
}
.mkt-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px; margin-bottom: 30px; }
.mkt-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 13px var(--mono); letter-spacing: .02em; color: var(--accent-1); }
.mkt-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: mkt-live 2s infinite; }
@keyframes mkt-live { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.mkt-title { margin: 0; font: 700 clamp(40px, 6.2vw, 84px)/.95 var(--display); letter-spacing: -.045em; text-transform: uppercase; color: var(--text); }
.mkt-title .mkt-o { color: var(--accent-1); }
.mkt-lede { max-width: 56ch; margin: 16px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.mkt-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mkt-acts a { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 10px; font: 600 15px var(--font); text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.mkt-acts .ico { width: 18px; height: 18px; }
.mkt-go { border: 1px solid #fafafa; background: #fafafa; color: #000; }
.mkt-go:hover { background: #e5e5e5; }
.mkt-sell { border: 1px solid var(--line-3); color: var(--text); }
.mkt-sell:hover { background: var(--surface-2); }
.mkt-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.mkt-facts li { display: inline-flex; align-items: center; gap: 8px; }
.mkt-facts .ico { width: 17px; height: 17px; color: var(--accent-1); }
.mkt-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mkt-rail > li { scroll-snap-align: start; min-width: 0; }
.mkt-rail .mk-tile { text-decoration: none; }
.mkt-rail .mk-tile.is-loading { min-height: 280px; }
.mkt-quiet { margin: 0; padding: 22px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .mkt-home { padding-top: 64px; }
  .mkt-frame { padding: 26px 20px; border-radius: 18px; }
  .mkt-frame::before { left: 20px; right: 20px; }
  .mkt-head { grid-template-columns: minmax(0, 1fr); }
  .mkt-rail { grid-auto-columns: minmax(200px, 72%); }
}
@media (max-width: 480px) {
  .mkt-home { padding-top: 56px; }
  .mkt-acts a { flex: 1 1 auto; justify-content: center; }
  .mkt-rail { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) { .mkt-eyebrow i { animation: none; } }

/* (v59) How you can pay, under Buy */
.mk-buy .mk-ways { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.mk-buy .mk-ways .ico { width: 16px; height: 16px; flex: none; color: var(--accent-1, #3b82f6); }

/* ==========================================================================
   (v60) 🚀 The showcase: boosted shops taking turns (reel.js) — home (#mkt-reel) and the market page (#mk-reel)
   ========================================================================== */
.rl { position: relative; margin: 0 0 24px; overflow: hidden; border: 1px solid rgba(59, 130, 246, .35); border-radius: 18px; background: #060606; }
.mk-reel { margin: 0 0 18px; }
.rl-track { display: grid; }
.rl-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 250px; min-width: 0;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s linear .18s; /* (the old one goes first…) */
}
.rl-slide.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease) .14s; } /* (…then the new one comes in) */
.rl-slide .rl-body { transform: translateY(6px); transition: transform .5s var(--ease) .14s; }
.rl-slide.is-on .rl-body { transform: none; }
.rl-pic { position: relative; display: block; min-height: 0; overflow: hidden; background: #0d0d0d; border-right: 1px solid var(--line); }
.rl-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s linear; }
.rl-slide.is-on .rl-pic img { transform: scale(1.04); }
.rl-blank { display: grid; place-items: center; width: 100%; height: 100%; min-height: 200px; font: 600 80px/1 var(--mono); color: #262626; text-transform: uppercase; }
.rl-body { display: grid; align-content: center; gap: 10px; min-width: 0; padding: 26px 30px 60px; }
.rl-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font: 500 12.5px var(--font); color: var(--muted); }
.rl-kind b { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-1); font: 600 11px var(--font); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.rl-kind b .ico { width: 12px; height: 12px; }
.rl-title {
  margin: 0; font: 600 clamp(22px, 2.6vw, 32px)/1.15 var(--font); letter-spacing: -.03em; text-transform: none; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.rl-text { margin: 0; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 0; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rl-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rl-meta > span:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.rl-meta img { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.rl-meta .ico { width: 14px; height: 14px; flex: none; }
.rl-go {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-top: 4px; padding: 0 16px; border: 1px solid #fafafa; border-radius: 10px;
  background: #fafafa; font: 600 14.5px var(--font); color: #000; text-decoration: none; transition: background .2s;
}
.rl-go:hover { background: #e5e5e5; }
.rl-go:focus-visible, .rl-nav:focus-visible, .rl-dots button:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.rl-go .ico { width: 16px; height: 16px; }
.rl-ctrl { position: absolute; right: 16px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.rl-nav { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(0, 0, 0, .65); color: var(--text); cursor: pointer; transition: border-color .2s; }
.rl-nav:hover { border-color: var(--line-3); }
.rl-nav .ico { width: 15px; height: 15px; }
.rl-dots { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; padding: 9px 4px; margin: -9px -4px; }
.rl-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.rl-dots button::after { content: ''; position: absolute; inset: -9px -4px; } /* (a bigger spot to tap) */
.rl-dots button[aria-current="true"] { width: 22px; background: var(--accent-1); }
@media (max-width: 760px) {
  .rl-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .rl-pic { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .rl-blank { min-height: 0; font-size: 60px; }
  .rl-body { align-content: start; padding: 16px 16px 62px; gap: 8px; }
  .rl-title { font-size: 21px; }
  .rl-text { font-size: 14px; -webkit-line-clamp: 2; }
  .rl-ctrl { left: 16px; right: 16px; justify-content: space-between; }
  .rl-dots { order: 2; flex: 1 1 auto; justify-content: center; }
  .rl-nav[data-rl="1"] { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-slide, .rl-slide.is-on, .rl-slide .rl-body { transition: none; }
  .rl-slide .rl-body { transform: none; }
  .rl-pic img, .rl-slide.is-on .rl-pic img { transition: none; transform: none; }
}

/* The first screen's "New" link, taking turns with boosted shops */
.mkt-pill > b, .mkt-pill > span { transition: opacity .22s var(--ease); }
.mkt-pill.is-swap > b, .mkt-pill.is-swap > span { opacity: 0; }
.mkt-pill.is-paid { border-color: rgba(59, 130, 246, .6); }

/* (v60) 🗂️ The categories, and the games / AI models in them (market page) */
.mk-cats, .mk-subs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; margin: 0 -1px; }
.mk-cats::-webkit-scrollbar, .mk-subs::-webkit-scrollbar { display: none; }
.mk-subs .mk-chip { height: 30px; padding: 0 11px; font-size: 13px; border-style: dashed; }
.mk-subs .mk-chip[aria-pressed="true"] { border-style: solid; background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
/* …and on the home screen: links to the market, filtered */
.mkt-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; padding: 0; list-style: none; }
.mkt-cats a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 14px var(--font); color: var(--text-2); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.mkt-cats a:hover { border-color: var(--line-3); color: var(--text); background: var(--surface-2); }
.mkt-cats small { font: 500 12px var(--mono); color: var(--muted); }

/* ==========================================================================
   (v60) 🤝 The middleman (middleman/, mm.js) — and its spot on the market page (.mk-mm)
   ========================================================================== */
.mk-mm { margin-top: 14px; }
.mm { max-width: 980px; }
.mm-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 26px; padding: 0; list-style: none; counter-reset: none; }
.mm-steps li { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mm-steps li > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(59, 130, 246, .5); background: rgba(59, 130, 246, .12); font: 600 14px var(--mono); color: #bfdbfe; }
.mm-steps h3 { margin: 0 0 4px; font: 600 15px/1.3 var(--font); letter-spacing: -.01em; text-transform: none; color: var(--text); }
.mm-steps p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.mm-ask, .mm-deals { margin: 0 0 22px; padding: 24px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.mm-ask h2, .mm-deals h2 { margin: 0 0 18px; font: 600 20px/1.3 var(--font); letter-spacing: -.02em; text-transform: none; color: var(--text); }
.mm-need-in { display: grid; gap: 8px; }
.mm-need-in b { font: 600 16px/1.35 var(--font); color: var(--text); }
.mm-need-in p { margin: 0; max-width: 62ch; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.mm-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mm-form { max-width: 640px; }
.mm-role { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mm-role legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 500; color: var(--text-2); }
.mm-role label { position: relative; flex: 1 1 160px; }
.mm-role input { position: absolute; opacity: 0; pointer-events: none; }
.mm-role span { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; font: 600 14.5px var(--font); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.mm-role label:hover span { color: var(--text); border-color: var(--line-3); }
.mm-role input:checked + span { background: #fafafa; border-color: #fafafa; color: #000; }
.mm-role input:focus-visible + span { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.mm-form textarea { min-height: 96px; }
.mm-sum { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid rgba(59, 130, 246, .35); border-radius: 10px; background: rgba(59, 130, 246, .08); font-size: 14px; line-height: 1.55; color: var(--text-2); }
.mm-sum .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-1); }
.mm-sum b { font-weight: 600; color: var(--text); }
.mm-form .mk-go { width: auto; padding: 0 22px; }
.mm-msg { min-height: 20px; margin: 0; font-size: 14px; color: var(--amber); }
.mm-msg.is-ok { color: var(--green); }
.mm-msg:empty { display: none; }
.mm-open { margin-left: 4px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.mm-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mm-deal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 12px; background: #070707; }
.mm-deal.is-ok { border-left-color: var(--green); }
.mm-deal.is-bad { border-left-color: var(--red); }
.mm-deal-main { display: grid; gap: 4px; flex: 1 1 320px; min-width: 0; }
.mm-deal-main b { font: 600 15px/1.4 var(--font); color: var(--text); overflow-wrap: anywhere; }
.mm-no { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.mm-deal-main small { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.mm-stage { font-size: 13.5px; color: var(--text-2); }
.mm-turn { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 600; color: #bfdbfe; }
.mm-turn .ico { width: 15px; height: 15px; }
@media (max-width: 960px) { .mm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mm-steps li:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .mm .mk-stats > div { flex: 1 1 100%; } } /* (the fee and the amounts are long: one under another) */
@media (max-width: 520px) {
  .mm-steps { grid-template-columns: minmax(0, 1fr); }
  .mm-steps li { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .mm-ask, .mm-deals { padding: 18px 16px; }
  .mm-form .mk-go { width: 100%; }
  .mm-deal .pp-mbtn { width: 100%; justify-content: center; }
}

/* (v61) 🔗 A shop's own address (ojailbreaks.com/kays-art), under its name — with Copy link beside it */
.mk-shop p.mk-shop-addr { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 8px; font: 500 13px/1.4 var(--font); color: var(--text); opacity: .85; overflow-wrap: anywhere; }
.mk-shop-addr .ico { width: 14px; height: 14px; flex: none; }

/* (v61) 🎨 A shop's own page: its cover picture across the top, its logo, a headline, its colour and a style.
   The colour only ever comes from the bot as #rrggbb; --shop-on is black or white text on it, and --shop-ink is it as
   text on the dark page (a very dark one lifted until it reads — mkt.js inkOf). */
.mk-shop.has-cover { padding-top: 0; overflow: hidden; }
.mk-shop-cover { grid-column: 1 / -1; margin: 0 -18px; aspect-ratio: 5 / 1; max-height: 260px; background: var(--surface-2); }
.mk-shop-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-shop.has-cover .mk-shop-av { align-self: start; position: relative; margin-top: -34px; box-shadow: 0 0 0 4px var(--surface); }
.mk-shop-av.is-logo { background: #fff; object-fit: contain; }
.mk-shop p.mk-shop-headline { margin-top: 6px; font: 500 15.5px/1.45 var(--font); color: var(--text); overflow-wrap: anywhere; }
.mk-shop.has-accent { border-top: 3px solid var(--shop-accent); }
.mk-shop.has-accent.has-cover { border-top-width: 1px; }
.mk-shop.has-accent .mk-shop-cover { border-bottom: 3px solid var(--shop-accent); }
.mk-shop.has-accent h2 { color: var(--shop-ink, var(--shop-accent)); }
.mk-shop.has-accent .mk-shop-acts .pp-mbtn:not(.ghost) { background: var(--shop-accent); border-color: var(--shop-accent); color: var(--shop-on); }
body.mk-look .mk-price { color: var(--shop-ink, var(--shop-accent)); }
body.mk-look .mk-tile:hover { border-color: var(--shop-accent); }
/* The styles a seller can pick (dark is the site as it is) */
.mk-shop.mk-theme-midnight { background: #0b1226; border-color: #1e2a4a; }
.mk-shop.mk-theme-midnight.has-cover .mk-shop-av { box-shadow: 0 0 0 4px #0b1226; }
.mk-shop.mk-theme-light { background: #f7f7f8; border-color: #e4e4e7; }
.mk-shop.mk-theme-light.has-cover .mk-shop-av { box-shadow: 0 0 0 4px #f7f7f8; }
.mk-shop.mk-theme-light h2, .mk-shop.mk-theme-light p.mk-shop-headline { color: #111; }
.mk-shop.mk-theme-light.has-accent h2 { color: #111; }
.mk-shop.mk-theme-light p, .mk-shop.mk-theme-light p.mk-shop-addr { color: #52525b; }
.mk-shop.mk-theme-light .pp-mbtn.ghost { border-color: #d4d4d8; color: #18181b; background: #fff; }
.mk-shop.mk-theme-light .mk-rate, .mk-shop.mk-theme-light .mk-rate .ico { color: #18181b; }
.mk-shop.has-accent:not(.has-cover) { border-top-color: var(--shop-accent); } /* (over a style's own border colour) */
.mk-shop.mk-theme-gradient { background: linear-gradient(135deg, color-mix(in srgb, var(--shop-accent, #3b82f6) 32%, var(--surface)) 0%, var(--surface) 70%); }
.mk-shop.mk-theme-gradient.has-cover .mk-shop-av { box-shadow: 0 0 0 4px color-mix(in srgb, var(--shop-accent, #3b82f6) 26%, var(--surface)); }
@media (max-width: 760px) {
  .mk-shop-cover { aspect-ratio: 3 / 1; }
  .mk-shop.has-cover .mk-shop-av { margin-top: -28px; }
}
/* (v61) 🎨 Opened at a shop's own address: its own page — its card first (mkt.js moves it above the search), no
   market welcome, no showcase of other shops, no row of shops ("Every shop" on its card goes back). */
body.mk-at-shop .mk-hero, body.mk-at-shop #mk-reel, body.mk-at-shop #mk-shops { display: none !important; }
body.mk-at-shop .mk-shop { margin-bottom: 14px; }

/* (v62) 🧩 The versions of one thing in its dialog (1 month, 3 months…): a button each — its name, its price, how many
   are left — the one picked lit up (in the shop's own colour on its page). The sold out ones can't be picked. */
.mk-vers { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-vers[hidden] { display: none; }
.mk-ver {
  display: grid; justify-items: start; gap: 1px; min-width: 104px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; font: 500 13.5px/1.35 var(--font); color: var(--text-2); text-align: left; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.mk-ver span { max-width: 100%; overflow-wrap: anywhere; }
.mk-ver b { font: 600 15px/1.3 var(--font); color: var(--text); font-variant-numeric: tabular-nums; }
.mk-ver small { font-size: 12px; color: var(--muted); }
.mk-ver small.is-low { color: var(--amber); }
.mk-ver:hover:not(:disabled) { border-color: var(--line-3); color: var(--text); }
.mk-ver[aria-pressed="true"] { border-color: #fafafa; background: #fafafa; color: #000; }
.mk-ver[aria-pressed="true"] b, .mk-ver[aria-pressed="true"] small { color: #000; }
.mk-ver:disabled { opacity: .45; cursor: not-allowed; }
.mk-ver:disabled b { text-decoration: line-through; }
body.mk-look .mk-ver[aria-pressed="true"] { border-color: var(--shop-accent); background: var(--shop-accent); color: var(--shop-on); }
body.mk-look .mk-ver[aria-pressed="true"] b, body.mk-look .mk-ver[aria-pressed="true"] small { color: var(--shop-on); }
/* (v62) 💳 An order waiting for payment (nothing's placed until it's paid): a clock, in amber */
.mk-done.is-wait .ico { background: rgba(245, 158, 11, .14); color: var(--amber); }
