/* ---------- השוק (בסגנון FC27, מחשב ושלט). הלוגיקה ב-js/market.js ---------- */
/* הפריסה כמו ב-FC (משמאל לימין): לוגו, "שוק", לשוניות קנייה / מכירה, מטבעות מימין. רמזי כפתורים בתחתית. */

#market {
  --mk-panel: linear-gradient(180deg, rgba(48, 60, 80, .78), rgba(32, 41, 58, .82));
  --mk-line: rgba(255, 255, 255, .1);
  --mk-teal: #5fd3c4;
  display: block;
  direction: ltr;
  font-family: var(--fc-font, "Segoe UI", Arial, sans-serif);
  color: #fff;
}
/* רקע כהה ומטושטש מעל הרקע המשותף, כמו במסכים של FC */
#market::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(80, 160, 170, .22), transparent 70%),
    linear-gradient(180deg, rgba(6, 12, 22, .72), rgba(4, 8, 16, .86));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body[data-screen="market"] #hints { display: none; }   /* לשוק יש סרגל רמזים משלו (mk-foot) */

/* ---------- כותרת ---------- */
.mk-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--bar-h, 10vh);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5vw;
  padding: 1.4vh 2.2vw 0;
  background: linear-gradient(180deg, rgba(2, 6, 13, .7), rgba(2, 6, 13, 0));
}
.mk-top .tb-tab { font-size: clamp(14px, 2.5vh, 30px); }
.mk-top .tb-tabs { gap: clamp(18px, 3vw, 64px); }
.mk-top .tb-dot { right: -1.2vh; }

/* ---------- תצוגות ---------- */
.mk-view {
  position: absolute;
  left: 4.5vw; right: 4.5vw;
  top: 15.5vh; bottom: 10vh;
  z-index: 2;
}
.mk-view[hidden] { display: none; }
.mk-view.in { animation: mk-in .45s var(--ease-out) both; }
@keyframes mk-in { from { opacity: 0; transform: translateY(1.6vh) scale(.99); } to { opacity: 1; transform: none; } }

/* ---------- חיפוש: אריחי מסננים ---------- */
.mk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.6vh 1.2vw;
  height: calc(100% - 10vh);
}
.mk-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: 2.2vh 1.4vw 2vh;
  border: 0;
  border-radius: 1vh;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  background: var(--mk-panel);
  box-shadow: inset 0 0 0 1px var(--mk-line), 0 1.2vh 3vh rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
  overflow: hidden;
}
.mk-tile::after {   /* הקו הזוהר בראש האריח שבפוקוס (כמו "League" בתמונה) */
  content: "";
  position: absolute;
  left: 20%; right: 20%; top: 0;
  height: .35vh;
  border-radius: 0 0 1vh 1vh;
  background: linear-gradient(90deg, transparent, #b8fff4, transparent);
  opacity: 0;
  transition: opacity .25s;
}
body.input-mouse .mk-tile:hover, .mk-tile.nav-focus {
  outline: none;
  transform: scale(1.025);
  background: linear-gradient(160deg, rgba(70, 150, 150, .78), rgba(70, 80, 140, .82));
  box-shadow: inset 0 0 0 .25vh rgba(170, 245, 240, .75), 0 1.6vh 4vh rgba(0, 0, 0, .4), 0 0 3vh rgba(95, 211, 196, .25);
}
body.input-mouse .mk-tile:hover::after, .mk-tile.nav-focus::after { opacity: 1; }
.mk-tile-title { font-size: clamp(15px, 3vh, 34px); font-weight: 700; }
.mk-tile-art { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; padding: 1.2vh 0; }
.mk-tile-art svg { height: 70%; max-height: 13vh; fill: rgba(205, 214, 228, .5); }
.mk-tile-val {
  display: flex;
  align-items: center;
  gap: 1.2vw;
  font-size: clamp(12px, 2.2vh, 24px);
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(225, 232, 242, .72);
  direction: rtl;
}
.mk-tile.set .mk-tile-val { color: #fff; }
.mk-arr { display: none; width: 0; height: 0; border-top: 1.1vh solid transparent; border-bottom: 1.1vh solid transparent; cursor: pointer; }
.mk-arr-l { border-left: 1.4vh solid #fff; }    /* RTL: החץ שמאלי בקוד מוצג מימין */
.mk-arr-r { border-right: 1.4vh solid #fff; }
.mk-tile.cyc:hover .mk-arr, .mk-tile.cyc.nav-focus .mk-arr { display: block; }
.mk-tile.bump-r .mk-tile-art > * { animation: mk-bump-r .3s var(--ease-out); }
.mk-tile.bump-l .mk-tile-art > * { animation: mk-bump-l .3s var(--ease-out); }
@keyframes mk-bump-r { from { opacity: 0; transform: translateX(2vw); } }
@keyframes mk-bump-l { from { opacity: 0; transform: translateX(-2vw); } }

.mk-face { height: 13vh; width: 13vh; object-fit: contain; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%); }
.mk-art-text { font-size: 3vh; font-weight: 700; direction: ltr; }
.mk-art-card { height: 14vh; width: auto; filter: drop-shadow(0 1vh 1.4vh rgba(0, 0, 0, .4)); }
.mk-art-pos { font-size: 7vh; font-weight: 900; letter-spacing: .04em; text-shadow: 0 .6vh 1.6vh rgba(0, 0, 0, .4); }
.mk-art-flag { height: 10vh; width: 10vh; object-fit: contain; }
.mk-art-crest { height: 13vh; width: 13vh; object-fit: contain; filter: drop-shadow(0 1vh 1.2vh rgba(0, 0, 0, .35)); }
.mk-art-price { align-content: center; gap: 2.2vh; direction: rtl; padding: 0 1vw; }
.mk-prow { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: clamp(12px, 2.2vh, 24px); color: rgba(225, 232, 242, .78); font-weight: 600; }
.mk-pval { display: inline-flex; align-items: center; gap: .5vw; color: #fff; font-weight: 800; }
.mk-pval b { direction: ltr; }
.mk-coin { height: 2.6vh; width: auto; vertical-align: middle; }

.mk-sbar { position: absolute; left: 0; right: 0; bottom: 0; height: 7.4vh; display: flex; align-items: center; gap: 1.4vw; }
.mk-shint { flex: 1; margin: 0; direction: rtl; text-align: left; font-size: clamp(11px, 1.9vh, 20px); color: rgba(220, 228, 240, .62); }

/* ---------- כפתורים ---------- */
.mk-go, .mk-ghost, .mk-pg, .mk-sort, .mk-chip, .mk-step {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, opacity .2s;
}
.mk-go {
  display: inline-flex;
  align-items: center;
  gap: 1vw;
  height: 6.2vh;
  padding: 0 2.4vw;
  border-radius: .7vh;
  font-size: clamp(14px, 2.5vh, 28px);
  font-weight: 800;
  color: #0d0f14;
  background: #fff;
  direction: rtl;
}
.mk-go-s { height: 5.4vh; font-size: clamp(13px, 2.2vh, 24px); }
.mk-go:disabled { opacity: .4; cursor: default; }
body.input-mouse .mk-go:not(:disabled):hover, .mk-go.nav-focus { transform: translateY(-.35vh); box-shadow: 0 1.2vh 2.6vh rgba(0, 0, 0, .45); }
.mk-go.nav-focus { outline: .35vh solid var(--fc-green, #8be04e); outline-offset: .45vh; }
.mk-go-ico { width: 3.4vh; height: 3.4vh; border-radius: 50%; background: #0d0f14; display: grid; place-items: center; }
.mk-go-ico::before { content: ""; border-left: .85vh solid transparent; border-right: .85vh solid transparent; border-bottom: 1.4vh solid #5fd3c4; transform: translateY(-.1vh); }

.mk-ghost {
  height: 5.4vh;
  padding: 0 1.6vw;
  border-radius: .7vh;
  font-size: clamp(12px, 2.05vh, 22px);
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  direction: rtl;
}
body.input-mouse .mk-ghost:hover, .mk-ghost.nav-focus { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 .25vh rgba(170, 245, 240, .8); outline: none; }

/* ---------- תוצאות ---------- */
.mk-rpanel {
  position: absolute;
  inset: 0;
  border-radius: 1.3vh;
  background: var(--mk-panel);
  box-shadow: inset 0 0 0 1px var(--mk-line), 0 2vh 5vh rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.mk-rhead { position: absolute; left: 2vw; right: 2vw; top: 2.6vh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mk-rtitle { text-align: center; }
.mk-rtitle h2 { margin: 0; font-size: clamp(16px, 3.4vh, 36px); font-weight: 800; }
.mk-rtitle p { margin: .5vh 0 0; direction: rtl; font-size: clamp(11px, 1.9vh, 20px); color: rgba(220, 228, 240, .65); }
.mk-rright { display: flex; justify-content: flex-end; align-items: center; gap: 1.2vw; }
.mk-pg {
  display: inline-flex; align-items: center; gap: .7vw;
  justify-self: start;
  padding: .6vh .4vw;
  background: none;
  color: #fff;
  font-size: clamp(12px, 2.1vh, 22px);
  font-weight: 600;
}
.mk-pg:disabled { opacity: .3; cursor: default; }
body.input-mouse .mk-pg:not(:disabled):hover, .mk-pg.nav-focus { color: var(--mk-teal); outline: none; }
.mk-sort { height: 4vh; padding: 0 1vw; border-radius: 2vh; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: clamp(11px, 1.8vh, 19px); direction: rtl; }
body.input-mouse .mk-sort:hover, .mk-sort.nav-focus { background: rgba(255, 255, 255, .22); outline: none; }

/* שורת הקלפים: כמו ב-FC, הקלפים חופפים מעט והנבחר גדול יותר עם סוגריים בפינות */
.mk-strip {
  --cw: min(8.1vw, 15.6vh);
  position: absolute;
  left: 2.4vw; right: 2.4vw;
  top: 13vh;
  height: calc(var(--cw) * 1.4 * 1.22 + 2vh);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk-strip.go-r .mk-rc { animation: mk-slide-r .45s var(--ease-out) both; animation-delay: calc(var(--i) * 25ms); }
.mk-strip.go-l .mk-rc { animation: mk-slide-l .45s var(--ease-out) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes mk-slide-r { from { opacity: 0; transform: translateX(4vw); } }
@keyframes mk-slide-l { from { opacity: 0; transform: translateX(-4vw); } }
.mk-rc {
  position: relative;
  flex: none;
  width: var(--cw);
  margin: 0 -.2vw;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .3s var(--ease-out), margin .3s var(--ease-out), filter .3s;
}
.mk-rc .mk-rc-card { width: 100%; }
.mk-rc .card { width: 100%; }
.mk-rc.sel { transform: scale(1.22); margin: 0 1.7vw; z-index: 30 !important; }
body.input-mouse .mk-rc:not(.sel):hover { transform: translateY(-1vh); }
.mk-rc.nav-focus { outline: none; }
.mk-br { position: absolute; width: 22%; height: 15%; border: .32vh solid rgba(225, 232, 242, .85); opacity: 0; transition: opacity .25s, inset .3s var(--ease-out); pointer-events: none; }
.mk-br-tl { left: -12%; top: -8%; border-right: 0; border-bottom: 0; }
.mk-br-tr { right: -12%; top: -8%; border-left: 0; border-bottom: 0; }
.mk-br-bl { left: -12%; bottom: -8%; border-right: 0; border-top: 0; }
.mk-br-br { right: -12%; bottom: -8%; border-left: 0; border-top: 0; }
.mk-rc.sel .mk-br { opacity: 1; }
.mk-rc-tag {
  position: absolute;
  left: 50%; top: 42%;
  translate: -50% 0;
  white-space: nowrap;
  padding: .4vh .7vw;
  border-radius: .5vh;
  font-size: clamp(9px, 1.5vh, 15px);
  font-weight: 800;
  direction: rtl;
  display: none;
}
.mk-rc:not([data-st="live"]) .mk-rc-tag { display: block; }
.mk-rc[data-st="mine"] .mk-rc-tag { background: #2f9e44; color: #fff; }
.mk-rc[data-st="gone"] .mk-rc-tag, .mk-rc[data-st="expired"] .mk-rc-tag { background: rgba(20, 24, 32, .92); color: #ffb4a8; }
.mk-rc[data-st="gone"] .mk-rc-card, .mk-rc[data-st="expired"] .mk-rc-card { filter: grayscale(1) brightness(.6); }

.mk-none { margin: 0 2vw 0 0; font-size: clamp(14px, 2.6vh, 28px); color: rgba(225, 232, 242, .8); direction: rtl; }

/* טבלת הפרטים מתחת לשורה (כמו Start Price / Buy Now / Time Remaining) */
.mk-detail { position: absolute; left: 0; right: 0; bottom: 3vh; display: flex; flex-direction: column; align-items: center; gap: 2vh; }
.mk-table { width: min(30vw, 62vh); direction: rtl; }
.mk-tr { display: flex; justify-content: space-between; align-items: center; gap: 1.5vw; padding: .9vh 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: clamp(12px, 2.25vh, 25px); }
.mk-tr:last-child { border-bottom: 0; }
.mk-tl { color: rgba(240, 244, 250, .92); }
.mk-tv { display: inline-flex; align-items: center; gap: .6vw; font-weight: 600; }
.mk-dname { font-weight: 700; }
.mk-price { display: inline-flex; align-items: center; gap: .45vw; }
.mk-price b { font-weight: 700; }
.mk-price.big b { font-size: 1.15em; font-weight: 800; }
.mk-price.neg b { color: #ff8a7a; }
.mk-price.mk-pchip { padding: .35vh .7vw; border-radius: 2vh; background: rgba(255, 255, 255, .1); font-size: .92em; }
.mk-acts { display: flex; align-items: center; gap: 1vw; direction: rtl; }
.mk-dstatus { font-weight: 800; font-size: clamp(12px, 2vh, 22px); color: #ffb4a8; }
.mk-dstatus[data-st="mine"] { color: #8be04e; }

/* ---------- מכירה ---------- */
.mk-sell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30vw); gap: 1.4vw; }
.mk-club, .mk-tlist {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 2.4vh 1.6vw 2vh;
  border-radius: 1.3vh;
  background: var(--mk-panel);
  box-shadow: inset 0 0 0 1px var(--mk-line), 0 2vh 5vh rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  direction: rtl;
}
.mk-phead { display: flex; align-items: baseline; justify-content: space-between; gap: 1vw; }
.mk-phead h2 { margin: 0; font-size: clamp(16px, 3.2vh, 34px); font-weight: 800; }
.mk-count { font-size: clamp(11px, 1.9vh, 20px); color: rgba(220, 228, 240, .65); direction: ltr; }
.mk-chipsrow { display: flex; gap: .7vw; margin: 1.6vh 0 1.4vh; }
.mk-chip { height: 4vh; padding: 0 1.2vw; border-radius: 2vh; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); font-size: clamp(11px, 1.85vh, 20px); font-weight: 700; }
.mk-chip.on { background: #fff; color: #0d0f14; }
body.input-mouse .mk-chip:not(.on):hover, .mk-chip.nav-focus { background: rgba(255, 255, 255, .22); outline: none; }
.mk-chip.on.nav-focus { box-shadow: 0 0 0 .3vh var(--mk-teal); }

.mk-cgrid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(7.4vw, 13vh), 1fr));
  gap: 2.2vh .9vw;
  align-content: start;
  padding: 1vh .6vw 2vh;
  direction: rtl;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.mk-sc { position: relative; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .22s var(--ease-out); }
.mk-sc .card { width: 100%; }
body.input-mouse .mk-sc:hover, .mk-sc.nav-focus { transform: translateY(-.8vh) scale(1.05); outline: none; z-index: 2; }
.mk-sc.nav-focus::after { content: ""; position: absolute; inset: -.6vh; border-radius: 1vh; box-shadow: 0 0 0 .3vh var(--mk-teal), 0 0 2vh rgba(95, 211, 196, .5); pointer-events: none; }
.mk-sc.locked .mk-sc-card { filter: grayscale(.85) brightness(.55); }
.mk-badge { position: absolute; left: 50%; translate: -50% 0; bottom: -1.3vh; padding: .25vh .6vw; border-radius: 1vh; font-size: clamp(9px, 1.45vh, 15px); font-weight: 800; white-space: nowrap; direction: rtl; }
.mk-n { left: auto; right: -.4vw; translate: none; top: -.8vh; bottom: auto; background: #fff; color: #0d0f14; direction: ltr; }
.mk-lock { background: #3a4152; color: #ffd7cf; }
.mk-lock::before { content: "🔒 "; }
.mk-in { background: #2f9e44; color: #fff; }

.mk-tl-items { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1vh; margin: 1.8vh 0 1.4vh; padding: 0 .3vw; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.mk-li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1vw;
  padding: .9vh .9vw;
  border: 0;
  border-radius: .9vh;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: background .2s;
}
body.input-mouse .mk-li:hover, .mk-li.nav-focus { background: rgba(255, 255, 255, .14); outline: none; box-shadow: inset 0 0 0 .25vh rgba(170, 245, 240, .7); }
.mk-li-card { width: min(3.4vw, 6.4vh); }
.mk-li-card .card { width: 100%; }
.mk-li-mid { display: flex; flex-direction: column; gap: .4vh; min-width: 0; }
.mk-li-mid b { font-size: clamp(12px, 2.1vh, 22px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.mk-li-st { font-size: clamp(10px, 1.75vh, 18px); color: rgba(220, 228, 240, .7); }
.mk-li-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3vh; font-size: clamp(12px, 2vh, 21px); }
.mk-li-net { font-size: .8em; color: #8be04e; direction: rtl; }
.st-sold { background: rgba(47, 158, 68, .22); box-shadow: inset 0 0 0 1px rgba(139, 224, 78, .45); }
.st-sold .mk-li-st { color: #8be04e; font-weight: 800; }
.st-expired { background: rgba(216, 68, 60, .16); box-shadow: inset 0 0 0 1px rgba(255, 140, 120, .35); }
.st-expired .mk-li-st { color: #ffb4a8; font-weight: 700; }
.mk-tlist .mk-drow { flex-wrap: wrap; }

.mk-empty { margin: 2vh 0; font-size: clamp(12px, 2.1vh, 22px); color: rgba(220, 228, 240, .62); direction: rtl; text-align: center; grid-column: 1 / -1; }

/* ---------- סרגל הרמזים בתחתית ---------- */
.mk-foot {
  position: absolute;
  left: 2.2vw; right: 2.2vw; bottom: 2.4vh;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2.2vw;
  direction: ltr;
}
.mk-fi { display: inline-flex; align-items: center; gap: .6vw; padding: .4vh .3vw; cursor: pointer; font-size: clamp(12px, 2.2vh, 24px); font-weight: 500; color: rgba(255, 255, 255, .92); border-radius: .6vh; transition: background .2s; }
.mk-fi span { direction: rtl; }
body.input-mouse .mk-fi:hover { background: rgba(255, 255, 255, .1); }

/* ---------- חלונות ---------- */
.mk-modal .modal-backdrop { background: radial-gradient(ellipse at center, rgba(14, 26, 44, .82), rgba(2, 6, 15, .94)); }
.mk-dlg {
  position: relative;
  max-height: 86vh;
  font-family: var(--fc-font, "Segoe UI", Arial, sans-serif);
  color: #fff;
  direction: rtl;
}
.modal.open .mk-dlg { animation: mk-pop .4s var(--ease-out) both; }
@keyframes mk-pop { from { opacity: 0; transform: translateY(2vh) scale(.97); } }
.mk-dh h2 { margin: 0; font-size: clamp(18px, 3.8vh, 40px); font-weight: 800; }
.mk-dh p { margin: .8vh 0 0; font-size: clamp(12px, 2vh, 21px); color: rgba(220, 228, 240, .68); }
.mk-drow { display: flex; align-items: center; gap: .9vw; margin-top: 2vh; }
.mk-dmsg { min-height: 2.6vh; margin: 1.4vh 0 0; font-size: clamp(11px, 2vh, 21px); color: #ffcf8a; }
.mk-lab { color: rgba(225, 232, 242, .78); font-size: clamp(12px, 2.05vh, 22px); }
.mk-muted { color: rgba(225, 232, 242, .55); font-size: .9em; }

.mk-dlg-pick {
  width: min(64vw, 120vh);
  padding: 3.4vh 2.4vw 3vh;
  border-radius: 1.4vh;
  background: linear-gradient(180deg, rgba(46, 58, 78, .97), rgba(28, 36, 52, .97));
  box-shadow: inset 0 0 0 1px var(--mk-line), 0 3vh 8vh rgba(0, 0, 0, .55);
}
.mk-input {
  width: 100%;
  height: 5.6vh;
  margin-top: 2vh;
  padding: 0 1.2vw;
  border: 0;
  border-radius: .8vh;
  font: 600 clamp(14px, 2.5vh, 26px) var(--fc-font, sans-serif);
  color: #fff;
  background: rgba(0, 0, 0, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  outline: none;
}
.mk-input:focus { box-shadow: inset 0 0 0 .25vh var(--mk-teal); }
.mk-input::placeholder { color: rgba(255, 255, 255, .4); }

.mk-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11vw, 20vh), 1fr)); gap: 1vh .8vw; max-height: 54vh; overflow-y: auto; margin-top: 2.2vh; padding: .4vh; scrollbar-width: thin; }
.mk-opts-pos { grid-template-columns: repeat(auto-fill, minmax(min(7vw, 13vh), 1fr)); }
.mk-opt {
  display: flex;
  align-items: center;
  gap: .8vw;
  min-height: 6.4vh;
  padding: .8vh 1vw;
  border: 0;
  border-radius: .8vh;
  color: #fff;
  font: 600 clamp(12px, 2.1vh, 22px) var(--fc-font, sans-serif);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  cursor: pointer;
  text-align: right;
}
.mk-opts-pos .mk-opt { justify-content: center; }
.mk-opt.on { background: rgba(95, 211, 196, .25); box-shadow: inset 0 0 0 .22vh var(--mk-teal); }
body.input-mouse .mk-opt:hover, .mk-opt.nav-focus { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 .25vh rgba(170, 245, 240, .85); outline: none; }
.mk-opt-img { height: 4.4vh; width: 4.4vh; object-fit: contain; flex: none; }
.mk-opt-card { height: 5.4vh; width: auto; flex: none; }
.mk-opt-pos { font-size: 2.8vh; font-weight: 900; letter-spacing: .04em; }
.mk-opt-any { font-style: normal; font-size: 3vh; width: 4.4vh; text-align: center; color: rgba(255, 255, 255, .6); }

.mk-sugg { display: flex; flex-direction: column; gap: .6vh; margin-top: 1.6vh; min-height: 8vh; max-height: 46vh; overflow-y: auto; }
.mk-sg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1vw;
  padding: .9vh 1vw;
  border: 0;
  border-radius: .8vh;
  color: #fff;
  font: 600 clamp(12px, 2.15vh, 23px) var(--fc-font, sans-serif);
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  direction: ltr;
  text-align: left;
}
body.input-mouse .mk-sg:hover, .mk-sg.nav-focus { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 .25vh rgba(170, 245, 240, .85); outline: none; }
.mk-sg-r { min-width: 4.4vh; padding: .3vh .3vw; border-radius: .5vh; text-align: center; color: #1a1406; background: #e8c45a; }
.mk-sg-r.tier-silver { background: #c9d0da; }
.mk-sg-r.tier-bronze { background: #c98a55; }
.mk-sg-p { color: rgba(225, 232, 242, .65); }
.mk-sg-c { height: 3.6vh; width: 3.6vh; object-fit: contain; }

.mk-pricedlg { width: min(46vw, 86vh); }
.mk-line { display: flex; align-items: center; justify-content: space-between; gap: 1.6vw; margin-top: 2.4vh; }
.mk-pf { display: flex; align-items: center; gap: .5vw; direction: ltr; }
.mk-step { direction: ltr; unicode-bidi: isolate; width: 5vh; height: 5vh; border-radius: .7vh; background: rgba(255, 255, 255, .12); color: #fff; font-size: 3vh; font-weight: 700; line-height: 1; }
body.input-mouse .mk-step:hover, .mk-step.nav-focus { background: rgba(255, 255, 255, .26); outline: none; box-shadow: inset 0 0 0 .25vh rgba(170, 245, 240, .85); }
.mk-step-big { font-size: 2.6vh; background: rgba(255, 255, 255, .07); }
.mk-pin { width: 10vw; height: 5vh; margin: 0; text-align: center; }
.mk-dur { display: flex; align-items: center; gap: .6vw; direction: ltr; }
.mk-dur b { min-width: 7vw; text-align: center; direction: rtl; font-size: clamp(13px, 2.3vh, 24px); }
.mk-range { color: rgba(225, 232, 242, .7); font-size: .9em; }

/* קנייה / מכירה: קלף גדול משמאל ופרטים מימין */
.mk-dlg-deal {
  display: flex;
  align-items: center;
  gap: 3.4vw;
  direction: ltr;
  padding: 4vh 3vw;
  border-radius: 1.6vh;
  background: linear-gradient(180deg, rgba(46, 58, 78, .97), rgba(26, 33, 48, .97));
  box-shadow: inset 0 0 0 1px var(--mk-line), 0 3vh 8vh rgba(0, 0, 0, .55);
}
.mk-deal { display: contents; }
.mk-deal-card { width: min(17vw, 34vh); flex: none; }
.mk-deal-card .card { width: 100%; }
.modal.open .mk-deal-card { animation: modal-card-in .7s var(--ease-out) both; }
.mk-deal-info { direction: rtl; min-width: min(30vw, 58vh); }
.mk-deal-name { margin: .8vh 0 1.6vh; font-size: clamp(14px, 2.6vh, 28px); font-weight: 700; color: rgba(225, 232, 242, .85); text-align: right; }
.mk-deal-info .mk-table { width: 100%; }
.mk-now { display: flex; flex-wrap: wrap; align-items: center; gap: .6vw; margin-top: 1.6vh; font-size: clamp(11px, 1.95vh, 21px); }
.mk-deal.won .mk-deal-card { animation: mk-won .9s var(--ease-out); }
.mk-deal.won .mk-dh h2 { color: #8be04e; }
.mk-deal.won .mk-dmsg { color: #8be04e; }
@keyframes mk-won { 30% { transform: scale(1.08); filter: drop-shadow(0 0 4vh rgba(139, 224, 78, .9)); } }

/* הודעה קצרה (UI.toast): טוב / רע */
.gtoast.good { box-shadow: inset 0 0 0 3px #2f9e44; }
.gtoast.bad { box-shadow: inset 0 0 0 3px #d8443c; }
