.mk-msg { margin-top: var(--s5); padding: var(--s12) var(--s5); text-align: center; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--r-xl); }
.mk-msg .link { margin-left: var(--s1); }
.mk-page { color: var(--text-3); font-weight: 500; }
.mk-guides ul { display: grid; gap: var(--s2); margin-top: var(--s2); }
.mk-guides .link { display: inline-flex; align-items: center; gap: 6px; }
.mk-guides .i { width: 14px; height: 14px; }

.dim { color: var(--text-3) !important; font-weight: 500; }

.mk-top { padding: var(--s10) 0 var(--s8); }
.mk-intro { margin-top: var(--s4); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s10); align-items: end; }
.mk-intro h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.04em; font-weight: 640; max-width: 18ch; }
.mk-intro p { margin-top: var(--s3); font-size: 17px; color: var(--text-2); max-width: 58ch; }
.assure { display: grid; gap: var(--s2); font-size: 14px; color: var(--text-2); }
.assure li { display: flex; align-items: center; gap: var(--s2); }
.assure .i { color: var(--accent-text); }

.mk-tabs img { width: 18px; height: 18px; border-radius: 4px; }
.mk-tabs span { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* On narrow screens the game tabs scroll sideways: fade the right edge so it is
   clear there are more, and leave room to scroll the last one clear of the fade. */
@media (max-width: 1100px) {
  .mk-tabs { padding-right: var(--s8); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
}

.filters {
  display: grid; gap: var(--s3); align-items: center; padding: var(--s5) 0;
  grid-template-columns: minmax(0, 1fr) 200px auto 190px;
}
.filters .input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.mk-count { display: flex; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); font-size: 14px; color: var(--text-2); }
.mk-count b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
/* The marketplace runs wider (page-wide), so it fits five cards a row on desktop. */
@media (min-width: 1281px) { .page-wide .mk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); } }
.mk-grid.is-busy .acc { opacity: .55; pointer-events: none; }
.mk-grid.is-busy .acc-skel { opacity: 1; }

.acc {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .2s var(--ease), opacity .15s;
}
.acc:not(.acc-skel):hover { border-color: var(--line-2); transform: translateY(-2px); }
.acc:hover .acc-foot .btn { filter: brightness(1.1); }

.acc-img { position: relative; aspect-ratio: 16 / 8.4; background: var(--surface-3) center / cover no-repeat; }
.acc-img.fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); }
.acc-img.fallback img { width: 56px; opacity: .85; }
.acc-img .tag, .nfa-banner .tag {
  position: absolute; left: var(--s3); top: var(--s3);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* CS2 Premier rating, drawn like the in-game badge: a slanted plate with three stripes, the
   tier colour changing every 5,000. It carries its own dark plate, so it reads on any banner
   and in both themes. */
.cs-rating {
  --c: #b0c3d9;
  position: relative; z-index: 0; display: inline-flex; align-items: baseline;
  height: 24px; padding: 0 10px 0 18px;
  font: italic 800 15px/24px var(--font); letter-spacing: .01em; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--c) 72%, #fff); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap;
}
.cs-rating b { font-weight: inherit; }
.cs-rating small { font-size: .74em; font-weight: 750; }
.cs-rating::before {
  content: ''; position: absolute; inset: 0; z-index: -1; transform: skewX(-18deg); border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 4px) 5px 50% / 8px 58% no-repeat,
    linear-gradient(90deg, color-mix(in srgb, var(--c) 36%, #0b0a0f), color-mix(in srgb, var(--c) 12%, #0b0a0f) 80%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 2px 10px -2px rgba(0, 0, 0, .6);
}
.cs-rating.t1 { --c: #8cc6ff; }
.cs-rating.t2 { --c: #4b69ff; }
.cs-rating.t3 { --c: #8847ff; }
.cs-rating.t4 { --c: #d32ce6; }
.cs-rating.t5 { --c: #eb4b4b; }
.cs-rating.t6 { --c: #ffd700; }
.acc-img .cs-rating { position: absolute; right: calc(var(--s3) + 3px); top: var(--s3); }
.nfa-banner .cs-rating {
  position: absolute; right: calc(var(--s4) + 4px); top: var(--s4);
  height: 32px; padding: 0 14px 0 24px; font-size: 20px; line-height: 32px;
}
.nfa-banner .cs-rating::before { background-size: 10px 58%, auto; background-position: 7px 50%, 0 0; }
@media (forced-colors: active) {
  .cs-rating::before { border: 1px solid CanvasText; }
}

.acc-body { padding: var(--s4); display: grid; gap: var(--s3); }
.acc-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acc-av { position: relative; width: 40px; height: 40px; flex: none; }
.acc-av .face { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: 15px; font-weight: 650; }
.acc-av .acc-game { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 5px; box-shadow: 0 0 0 2px var(--surface); }
.acc-title h3 { min-width: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.acc-title small { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
@supports selector(:has(*)) {
  .acc-link:focus-visible { outline: none; }
  .acc:has(.acc-link:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
}

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); font-size: 12.5px; }
.specs dt { color: var(--text-3); }
.specs dd { font-weight: 560; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.inv { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--bg-2); font-size: 13px; color: var(--text-2); }
.inv b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.inv b.val, .val { color: var(--ok) !important; }

.lib { display: flex; gap: 4px; align-items: center; min-width: 0; }
.lib img { flex: 0 1 58px; width: 58px; min-width: 0; aspect-ratio: 231 / 87; border-radius: 4px; object-fit: cover; background: var(--surface-3); }
.lib span { flex: none; font-size: 12px; color: var(--text-3); margin-left: 4px; white-space: nowrap; }
.lib .lib-ph {
  flex: 0 1 58px; width: 58px; min-width: 0; margin: 0; aspect-ratio: 231 / 87; border-radius: 4px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(155deg, hsl(var(--h, 220) 32% 32%), hsl(var(--h, 220) 28% 14%));
  font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff;
}

.acc-foot { margin-top: auto; padding: var(--s3) var(--s4) var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--line); }
.acc-foot .price { font-size: 24px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.acc-foot .price small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }

.acc-skel .acc-img { border-radius: 0; }
.sk-title { height: 22px; width: 70%; }
.sk-specs { height: 38px; }
.sk-row { height: 34px; }
.sk-price { height: 24px; width: 64px; }
.sk-btn { height: 42px; width: 68px; border-radius: var(--r-md); }

.pager { margin-top: var(--s10); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); }
.pager a, .pager .pg-off { min-width: 40px; height: 40px; padding: 0 var(--s3); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.pager a:hover { background: var(--surface-2); color: var(--text); }
.pager .pg-off { opacity: .4; }
.pager a[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pager .gap { color: var(--text-3); align-self: center; padding: 0 var(--s2); }

.seo-copy { margin-top: var(--s20); padding-top: var(--s10); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); }
.seo-copy h2 { font-size: 22px; letter-spacing: -.025em; font-weight: 620; }
.seo-copy p { margin-top: var(--s3); color: var(--text-2); }

/* The account page runs wider (header and footer too, so edges stay aligned):
   room for four library games a row next to the buy panel. */
body.page-wide { --wrap: 1440px; }
.nfa-page { padding-top: var(--s8); }
.nfa-page > .crumbs { margin-bottom: var(--s5); }
.nfa-skel .skeleton { display: block; }
.sk-banner { aspect-ratio: 16 / 5; min-height: 150px; border-radius: 0; }
.sk-body { padding: var(--s6); display: grid; gap: var(--s3); }
.sk-title { height: 28px; width: 45%; }
.sk-line { height: 14px; width: 70%; }
.sk-stats { height: 72px; margin-top: var(--s3); }
.sk-price { height: 36px; width: 45%; }
.nfa-buy .sk-line { margin-top: var(--s3); }
.sk-btn { height: 48px; margin-top: var(--s5); border-radius: var(--r-md); }

.nfa { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); align-items: start; }
.nfa > * { grid-column: 1; min-width: 0; align-self: start; }
.nfa > .nfa-buy { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 88px; }

.nfa-hero { overflow: hidden; }
.nfa-banner { position: relative; aspect-ratio: 16 / 5; min-height: 150px; background: var(--surface-3) center / cover no-repeat; }
.nfa-banner.fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); }
.nfa-banner.fallback img { width: 88px; opacity: .85; }
.nfa-banner .tag { left: var(--s4); top: var(--s4); }

.nfa-head { display: flex; align-items: center; gap: var(--s4); padding: var(--s5) var(--s6) 0; }
.nfa-avatar { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--surface-3); color: var(--text-3); object-fit: cover; }
.nfa-avatar .i { width: 24px; height: 24px; }
.nfa-name { min-width: 0; }
.nfa-kicker { display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--text-3); }
.nfa-kicker img { width: 18px; height: 18px; border-radius: 4px; }
.nfa-head h1 { margin-top: 2px; font-size: 32px; line-height: 1.15; letter-spacing: -.035em; font-weight: 640; }
.nfa-sub { margin-top: 2px; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }

.nfa-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: var(--s2); padding: var(--s5) var(--s6) var(--s6); }
.nfa-specs > div { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--bg-2); }
.nfa-specs dt { font-size: 12.5px; color: var(--text-3); }
.nfa-specs dd { margin-top: 2px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nfa-ban { display: flex; align-items: flex-start; gap: var(--s3); margin: calc(-1 * var(--s3)) var(--s6) var(--s6); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--warn-soft); font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.nfa-ban .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warn); }
.nfa-ban b { font-weight: 600; color: var(--text); }
.nfa-ban.bad { background: var(--bad-soft); }
.nfa-ban.bad .i { color: var(--bad); }

.nfa-buy { padding: var(--s6); }
.nfa-price { font-size: 40px; line-height: 1; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.nfa-price small { margin-left: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.nfa-avail { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.nfa-buy #nfaPurchaseBtn { margin-top: var(--s5); }
.nfa-checkout-msg { margin-top: var(--s2); font-size: 13px; color: var(--accent-text); }
.nfa-checkout-msg:empty { display: none; }

.nfa-pay { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.nfa-pay > p { font-size: 13px; color: var(--text-3); margin-bottom: var(--s2); }
.nfa-pay ul { display: flex; flex-wrap: wrap; gap: var(--s2); }
.nfa-pay li { height: 34px; padding: 0 var(--s3); display: inline-flex; align-items: center; gap: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; color: var(--text-2); }

.nfa-trust { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s4); }
.nfa-trust li { display: flex; gap: var(--s3); align-items: flex-start; }
.nfa-trust .i { margin-top: 3px; color: var(--accent-text); }
.nfa-trust b { display: block; font-size: 14px; font-weight: 560; color: var(--text); }
.nfa-trust small { display: block; font-size: 13px; color: var(--text-3); }

.nfa-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: var(--s3); }
.nfa-game { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); }
.nfa-game-img { position: relative; aspect-ratio: 92 / 43; background: var(--surface-3); }
.nfa-game-img img { width: 100%; height: 100%; object-fit: cover; }
.nfa-game-img .tag { position: absolute; left: 6px; top: 6px; height: 20px; padding: 0 7px; font-size: 11px; background: var(--accent); color: var(--on-accent); }
/* No artwork on Steam (delisted apps): a tinted tile per game, hue from its name. */
.nfa-game-img.empty {
  background:
    radial-gradient(120% 90% at 100% 0%, hsl(var(--h, 220) 70% 60% / .32), transparent 62%),
    linear-gradient(155deg, hsl(var(--h, 220) 32% 26%), hsl(var(--h, 220) 28% 11%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
.nfa-game-img.empty img { visibility: hidden; }
.nfa-game-img.empty::after {
  content: attr(data-name); position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: var(--s3);
  text-align: center; text-wrap: balance; font-size: 15px; font-weight: 700; letter-spacing: -.015em;
  line-height: 1.2; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .4);
}
.nfa-game-body { padding: var(--s2) 10px; }
.nfa-game-body b { display: block; font-size: 13px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfa-game-body span { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.nfa-invtotal { font-size: 18px; font-weight: 650; letter-spacing: -.02em; color: var(--ok); font-variant-numeric: tabular-nums; }
.nfa-inv { border-top: 1px solid var(--line); }
.nfa-invgroup + .nfa-invgroup { border-top: 1px solid var(--line); }
.nfa-invhead { width: 100%; display: flex; align-items: center; gap: 10px; padding: var(--s4) 0; text-align: left; font-size: 14.5px; font-weight: 560; color: var(--text); }
.nfa-invhead:hover .nfa-invname { text-decoration: underline; text-underline-offset: 3px; }
.nfa-invhead img { width: 20px; height: 20px; border-radius: 5px; }
.nfa-caret { color: var(--text-3); transition: transform .15s var(--ease); }
.nfa-invhead[aria-expanded="true"] .nfa-caret { transform: rotate(90deg); }
.nfa-invpcs { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--text-3); white-space: nowrap; }
.nfa-invval { min-width: 72px; text-align: right; font-weight: 600; color: var(--ok); font-variant-numeric: tabular-nums; }
.nfa-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; padding-bottom: var(--s5); }
.nfa-item { display: block; width: 100%; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.nfa-item:hover { border-color: var(--accent-line); }
.nfa-item:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.nfa-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6px; background: var(--surface-2); transition: transform .2s var(--ease); }
.nfa-item:hover img { transform: scale(1.06); }
.nfa-item img.empty { visibility: hidden; }
.nfa-item-body { display: block; padding: var(--s2) 9px; }
.nfa-item-body span { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfa-item-body b { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.nfa-modal { opacity: 0; transition: opacity .2s var(--ease); }
.nfa-modal.open { opacity: 1; }
.nfa-modal .modal { width: min(440px, 100%); transform: translateY(12px); transition: transform .25s var(--ease); }
.nfa-modal.open .modal { transform: none; }
.nfa-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.nfa-modal-head h2 { font-size: 22px; font-weight: 640; letter-spacing: -.03em; }
.nfa-modal-head p { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.nfa-modal form .btn { margin-top: var(--s6); }
.nfa-method { height: 44px; padding: 0 var(--s3); display: flex; align-items: center; gap: var(--s2); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: 15px; }
.nfa-method b { font-weight: 560; }
.nfa-method span { margin-left: auto; font-size: 13px; color: var(--text-3); }
.nfa-modal-error { margin-top: var(--s3); padding: 10px var(--s3); border-radius: var(--r-md); background: var(--bad-soft); color: var(--bad); font-size: 13.5px; }
.nfa-modal-error:empty { display: none; }
.nfa-modal-note { margin-top: var(--s3); text-align: center; font-size: 13px; color: var(--text-3); }

.nfa-itemview .modal { position: relative; width: min(420px, 100%); padding: 0; }
.nfa-itemview .nfa-modal-close { position: absolute; top: var(--s3); right: var(--s3); z-index: 1; background: var(--surface); }
.nfa-iv-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: radial-gradient(70% 70% at 50% 45%, var(--surface-3), var(--bg-2)); border-bottom: 1px solid var(--line); }
.nfa-iv-art img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .35)); }
.nfa-iv-art img.empty { visibility: hidden; }
.nfa-iv-body { padding: var(--s5) var(--s6) var(--s5); }
.nfa-iv-kicker { font-size: 13px; color: var(--text-3); }
.nfa-iv-body h2 { margin-top: 2px; font-size: 22px; line-height: 1.2; font-weight: 640; letter-spacing: -.03em; overflow-wrap: anywhere; }
.nfa-iv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.nfa-iv-tags:empty { display: none; }
.nfa-iv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); margin: var(--s5) 0 var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.nfa-iv-price span { margin-right: auto; font-size: 13px; color: var(--text-3); }
.nfa-iv-price b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; color: var(--ok); font-variant-numeric: tabular-nums; }
.nfa-iv-price b.dim { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.nfa-iv-price small { width: 100%; text-align: right; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nfa-iv-price small:empty { display: none; }
#nfaItemMarket .i { width: 15px; height: 15px; }
.nfa-iv-nav { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s4); font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nfa { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
  .nfa { grid-template-columns: minmax(0, 1fr); }
  .nfa > .nfa-buy { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 860px) {
  .mk-top { padding: var(--s8) 0 var(--s6); }
  .mk-intro { grid-template-columns: 1fr; gap: var(--s5); align-items: start; }
  .mk-intro h1 { font-size: 36px; }
  .assure { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > .input-wrap { grid-column: 1 / -1; }
  .filters > .switch { grid-column: 1 / -1; grid-row: 3; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .seo-copy { grid-template-columns: 1fr; gap: var(--s8); margin-top: var(--s16); }
}
@media (max-width: 560px) {
  .mk-intro h1 { font-size: 30px; }
  .mk-intro p { font-size: 16px; }
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .pager { gap: 2px; }
  .pager a, .pager .pg-off { min-width: 34px; padding: 0 var(--s2); }
  .nfa-page { padding-top: var(--s5); }
  .nfa-head { padding: var(--s4) var(--s4) 0; gap: var(--s3); }
  .nfa-avatar { width: 48px; height: 48px; }
  .nfa-head h1 { font-size: 26px; }
  .nfa-specs { grid-template-columns: 1fr 1fr; padding: var(--s4); }
  .nfa-ban { margin: calc(-1 * var(--s1)) var(--s4) var(--s4); }
  .nfa-buy { padding: var(--s5); }
  .nfa-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nfa-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card.panel.nfa-sec { padding: var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  .acc:not(.acc-skel):hover { transform: none; }
}

/* Checkout: four steps in one dialog (market_checkout.py + nfa-account.js). */
.nfa-checkout .modal { width: min(500px, 100%); }
.nfa-checkout .nfa-modal-head { margin-bottom: var(--s4); }
.ck-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-bottom: var(--s5); counter-reset: ck; }
.ck-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.ck-steps li::before { content: ''; height: 3px; border-radius: var(--r-full); background: var(--surface-3); }
.ck-steps li.done::before, .ck-steps li.current::before { background: var(--accent); }
.ck-steps li.current { color: var(--text); font-weight: 560; }
.ck-steps li.done { color: var(--text-2); }
.ck-dot { display: none; }
.ck-h { font-size: 17px; font-weight: 620; letter-spacing: -.01em; margin-bottom: var(--s4); outline: none; }
.ck-center { text-align: center; }
.ck-muted { font-size: 13.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.ck-muted .i { width: 15px; height: 15px; flex: none; }
#ckForm .field + .field { margin-top: var(--s4); }

.ck-account { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); margin-bottom: var(--s4); border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.ck-account > .i { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.ck-account > span { display: grid; min-width: 0; }
.ck-account b { font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-account small { font-size: 12.5px; color: var(--text-3); }
.ck-account strong { margin-left: auto; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }

.ck-coins { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.ck-coins legend { padding: 0; margin-bottom: var(--s2); }
/* Two coins a row, always: the server offers an even number (market_checkout._market_coins). */
.ck-coin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); max-height: 228px; overflow: auto; padding: 2px; }
.ck-coin { position: relative; display: block; cursor: pointer; }
.ck-coin:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* no coin to pair it with: full row */
.ck-coin input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ck-coin > span {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center;
  padding: 9px var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2);
  transition: border-color .15s, background-color .15s;
}
.ck-coin .ck-coin-ico { grid-row: 1 / span 2; }
.ck-coin b, .ck-coin small { grid-column: 2; min-width: 0; }
.ck-coin b { font-size: 14.5px; font-weight: 600; }
.ck-coin small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-coin:hover > span { border-color: var(--text-3); }
/* Coin picture (round, static/img/coins) + the network badge a token such as USDT carries. */
.ck-coin-ico { position: relative; display: block; width: 28px; height: 28px; flex: none; }
.ck-coin-ico > img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.ck-coin-ico > .ck-coin-badge {
  position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px;
  box-shadow: 0 0 0 2px var(--bg-2);
}
.ck-coin-ico.sm { width: 18px; height: 18px; }
.ck-coin-ico.sm > .ck-coin-badge { right: -2px; bottom: -2px; width: 10px; height: 10px; box-shadow: 0 0 0 1.5px var(--surface); }
.ck-coin-letter { display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 650; }
.ck-coin-letter.sm { font-size: 10px; }
.ck-coin input:checked + span { border-color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-text); }
.ck-coin input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.ck-notes { display: grid; gap: var(--s2); margin-top: var(--s4); }
.ck-notes li { display: flex; gap: var(--s2); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.ck-notes .i { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text-3); }
#ckForm .btn-lg { margin-top: var(--s5); }

.ck-pay { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.ck-qr { width: 152px; height: 152px; flex: none; border-radius: var(--r-md); background: #fff; }
.ck-pay-main { display: grid; gap: 6px; min-width: 0; }
.ck-amount b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ck-amount small { font-size: 14px; font-weight: 560; color: var(--text-2); }
.ck-field { margin-top: var(--s4); display: grid; gap: 6px; }
.ck-copy-row { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.ck-copy-row code { flex: 1; min-width: 0; padding: 9px var(--s3); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-all; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.ck-amount { gap: var(--s3); }
.ck-copy { flex: none; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 540; color: var(--text-2); transition: background-color .15s, color .15s; }
.ck-copy .i { width: 14px; height: 14px; }
.ck-copy:hover { color: var(--text); background: var(--surface-2); }
.ck-copy.copied { color: var(--ok); border-color: var(--ok); }
.ck-warn { margin-top: var(--s3); display: flex; gap: var(--s2); font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.ck-warn .i { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--warn); }

.ck-timer { position: relative; overflow: hidden; margin-top: var(--s4); display: flex; align-items: center; gap: var(--s2); padding: 10px var(--s3); border-radius: var(--r-md); background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.ck-timer .i { width: 16px; height: 16px; flex: none; }
.ck-timer b { margin-left: auto; font-size: 15px; font-weight: 640; color: var(--text); font-variant-numeric: tabular-nums; }
.ck-timer i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--accent); transition: width 1s linear; }
.ck-timer.low b { color: var(--warn); }
.ck-timer.over { align-items: flex-start; background: var(--warn-soft); line-height: 1.45; }
.ck-timer.over .i { margin-top: 2px; color: var(--warn); }
.ck-status { margin: var(--s3) 0; display: flex; align-items: center; gap: var(--s2); font-size: 13.5px; color: var(--text-2); }
.ck-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent-text); animation: spin .8s linear infinite; }
.ck-ref { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s2); font-size: 12.5px; color: var(--text-3); }
.ck-ref code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ck-ref .ck-copy { height: 28px; }

.ck-progress { display: grid; gap: 0; }
.ck-progress li { position: relative; display: flex; gap: var(--s3); padding-bottom: var(--s4); }
.ck-progress li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line-2); }
.ck-progress li.done:not(:last-child)::after { background: var(--ok); }
.ck-mark { position: relative; width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); color: var(--text-3); }
.ck-mark .i { width: 13px; height: 13px; }
.ck-progress li.done .ck-mark { border-color: var(--ok); background: var(--ok); color: var(--bg); }
.ck-progress li.fail .ck-mark { border-color: var(--bad); background: var(--bad); color: var(--bg); }
.ck-progress li.active .ck-mark { border-color: var(--line-2); border-top-color: var(--accent-text); animation: spin .9s linear infinite; }
.ck-progress b { display: block; font-size: 14.5px; font-weight: 580; line-height: 24px; }
.ck-progress li.todo b { color: var(--text-3); font-weight: 520; }
.ck-progress p { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.ck-progress code { font-size: 12px; }
.ck-elapsed { font-variant-numeric: tabular-nums; color: var(--text); }

.ck-alert { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.ck-alert > .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ck-alert b { display: block; color: var(--text); font-weight: 600; }
.ck-alert p { margin-top: 2px; }
.ck-alert.warn { background: var(--warn-soft); }
.ck-alert.warn > .i { color: var(--warn); }
.ck-alert.bad { background: var(--bad-soft); }
.ck-alert.bad > .i { color: var(--bad); }
.ck-key { margin-top: var(--s4); display: grid; gap: 6px; }
.ck-key code { font-size: 13.5px; color: var(--text); border-color: var(--accent-line); }
.ck-actions { margin-top: var(--s4); display: grid; gap: var(--s2); }

.ck-done { width: 52px; height: 52px; margin: 0 auto var(--s3); display: grid; place-items: center; border-radius: 50%; }
.ck-done .i { width: 26px; height: 26px; }
.ck-done.ok { background: var(--ok-soft); color: var(--ok); }
.ck-done.warn { background: var(--warn-soft); color: var(--warn); }
.ck-receipt { margin-top: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); }
.ck-receipt > div { display: flex; align-items: center; gap: var(--s3); padding: 9px var(--s4); font-size: 13.5px; }
.ck-receipt > div + div { border-top: 1px solid var(--line); }
.ck-receipt dt { color: var(--text-3); flex: none; width: 92px; }
.ck-receipt dd { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: var(--s2); justify-content: flex-end; text-align: right; overflow-wrap: anywhere; }
.ck-receipt dd code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ck-receipt dd small { color: var(--text-3); }
.ck-receipt .ck-copy { height: 26px; padding: 0 8px; }

@media (max-width: 560px) {
  .nfa-checkout.modal-backdrop { padding: 0; place-items: end stretch; }
  .nfa-checkout .modal { width: 100%; max-height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s5); }
  .ck-pay { flex-direction: column; align-items: stretch; text-align: center; }
  .ck-pay .label { justify-content: center; }
  .ck-qr { margin: 0 auto; }
  .ck-amount { justify-content: center; }
  .ck-step-name { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-spin, .ck-progress li.active .ck-mark { animation-duration: 2.4s; }
  .ck-timer i { transition: none; }
}
