/* Trinity Market (2026-11-27). Loaded by themes/trinity/market/_top.php */
.mk, .mk-tabs { --mk-ink: var(--tk-ink, #53351a); --mk-muted: var(--tk-muted, #927c68); --mk-line: var(--tk-border, #eee5dd);
	--mk-soft: var(--tk-soft, #fbf5ef); --mk-blue: var(--tk-blue, #d1721e); --mk-dark: #382616; --mk-green: #187a3e; --mk-r: 14px; }

/* Wide page on PC: only the market pages (the theme box is 1180px) */
/* No box: the market page is a full-width white sheet under the banner */
.tr-shell:has(.mk-tabs) { max-width: none; padding-left: 0; padding-right: 0; }
.tr-card:has(.mk-tabs) { border: 0; border-radius: 0; box-shadow: none; padding: 28px clamp(16px, 2.4vw, 48px) 40px; background: #fff; }
.mk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tabs */
.mk-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; padding: 6px; background: var(--mk-soft); border-radius: 999px; }
.mk-tabs a { padding: 8px 18px; border-radius: 999px; color: var(--mk-muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.mk-tabs a:hover { color: var(--mk-ink); }
.mk-tabs a.is-on { background: #fff; color: var(--mk-ink); box-shadow: 0 2px 8px rgba(98, 62, 31, .12); }
.mk-tabs .mk-bal { margin-left: auto; padding: 8px 14px; font-size: 14px; color: var(--mk-muted); }
.mk-tabs .mk-bal strong { color: var(--mk-green); }
.mk-tabs a.mk-bal-login { color: var(--mk-blue); }

/* Buttons */
.mk-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
	border-radius: 8px; border: 1px solid transparent; font: 600 14px/1 var(--font, sans-serif); cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; }
.tr-card .mk-btn-dark, .mk-btn-dark { background: var(--mk-dark); color: #fff; box-shadow: none; }
.tr-card .mk-btn-dark:hover, .mk-btn-dark:hover { background: #543c27; color: #fff; }
.tr-card .mk-btn-line, .mk-btn-line { background: #fff; color: var(--mk-ink); border-color: var(--mk-line); box-shadow: 0 1px 3px rgba(98, 62, 31, .08); }
.tr-card .mk-btn-line:hover, .mk-btn-line:hover { background: var(--mk-soft); color: var(--mk-ink); }
.mk-btn[disabled] { opacity: .45; cursor: not-allowed; }
.mk-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.mk-btn:focus-visible, .mk-tabs a:focus-visible, .mk-cats a:focus-visible, .mk-media:focus-visible { outline: 3px solid var(--mk-blue); outline-offset: 2px; }

/* Hero + stats */
.mk-hero { padding: 6px 0 26px; }
.mk-hero h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; color: var(--mk-ink); }
.mk-hero p { margin: 0 0 18px; max-width: 640px; color: var(--mk-muted); }
.mk-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.mk-stats > div { padding: 14px 14px 12px; background: #fbf8f6; border: 1px solid var(--mk-line); border-radius: 10px; min-width: 0; }
.mk-stats dt { font-size: 13px; color: var(--mk-muted); margin: 0 0 6px; }
.mk-stats dd { margin: 0; font-weight: 700; color: var(--mk-ink); font-variant-numeric: tabular-nums; }
.mk-stats dd small { display: block; font-weight: 400; font-size: 12px; color: var(--mk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Boxes */
.mk-box { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--mk-line); border-radius: var(--mk-r); background: #fff; }
.mk-box h3 { margin: 0 0 14px; font-size: 18px; color: var(--mk-ink); }
.mk-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--mk-line); border-radius: 999px; font-size: 12px; color: var(--mk-ink); }
.mk-live i { width: 8px; height: 8px; border-radius: 50%; background: #22a55a; }
.mk-empty { margin: 0; padding: 18px; text-align: center; color: var(--mk-muted); background: #fdfaf8; border-radius: 10px; }
.mk-note { font-size: 13px; color: var(--mk-muted); }
.mk-warn { padding: 10px 12px; border-radius: 8px; background: #fdf0ee; color: #9b2c1f; font-size: 14px; }

/* Latest */
.mk-latest ul { list-style: none; margin: 0; padding: 0; }
.mk-latest li { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-top: 1px solid #f6f2ee; }
.mk-latest li:first-child { border-top: 0; }
.mk-thumb { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--mk-line); border-radius: 8px; background: #fff; overflow: hidden; }
.mk-thumb img { max-width: 100%; max-height: 100%; image-rendering: auto; }
.mk-thumb-lg { width: 72px; height: 72px; }
.mk-latest-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--mk-muted); }
.mk-latest-text strong { color: var(--mk-ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-latest-text b { color: var(--mk-ink); }
.mk-latest-price { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; font-size: 12px; color: var(--mk-muted); }
.mk-latest-price strong { color: var(--mk-ink); font-size: 14px; }

/* Search bar */
.mk-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.mk-search { flex: 1 1 280px; }
.mk-bar input[type=search], .mk-bar select, .mk-field select { width: 100%; min-height: 42px; padding: 0 14px; border: 1px solid var(--mk-line); border-radius: 8px;
	background: #fbf8f6; font: 14px var(--font, sans-serif); color: var(--mk-ink); box-sizing: border-box; }
.mk-sort { flex: 0 1 220px; }

/* Layout */
.mk-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.mk-cats { position: sticky; top: calc(var(--nav, 68px) + 12px); padding: 16px; background: #fbf8f6; border: 1px solid var(--mk-line); border-radius: var(--mk-r); }
.mk-cats h3 { margin: 0 0 10px; font-size: 15px; color: var(--mk-ink); }
.mk-cats ul { list-style: none; margin: 0; padding: 0; }
.mk-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--mk-ink); font-size: 14px; text-decoration: none; }
.mk-cats a:hover { background: #fff; }
.mk-cats a.is-on { background: #fff; font-weight: 700; box-shadow: 0 1px 4px rgba(98, 62, 31, .1); }
.mk-ico { flex: 0 0 28px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.mk-ico img { width: 24px; height: 24px; image-rendering: pixelated; }
.mk-ico svg { display: block; }
.mk-cats a { padding: 10px; }
.mk-count { margin: 0 0 12px; font-size: 14px; color: var(--mk-muted); }

/* Item grid */
.mk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.mk-item { display: flex; flex-direction: column; border: 1px solid var(--mk-line); border-radius: var(--mk-r); background: #fff; overflow: hidden;
	box-shadow: 0 2px 8px rgba(98, 62, 31, .06); transition: box-shadow .2s, transform .2s; }
.mk-item:hover { box-shadow: 0 10px 26px -12px rgba(98, 62, 31, .35); transform: translateY(-2px); }

/* Picture flips to show details on hover / focus */
.mk-media { margin: 10px 10px 0; height: 170px; perspective: 900px; cursor: default; border-radius: 10px; }
.mk-media-in { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mk-media:hover .mk-media-in, .mk-media:focus .mk-media-in { transform: rotateY(180deg); }
.mk-front, .mk-back { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mk-front { display: flex; align-items: center; justify-content: center; border: 1px solid #f2ece7; background: linear-gradient(#fff 55%, #f2ede9); }
/* Item picture fills most of the box (collection pictures are only 75x100, so scale them up) */
.mk-front img { height: 90%; width: auto; max-width: 92%; object-fit: contain; mix-blend-mode: multiply; }
.mk-front-card { background: linear-gradient(#faf7f4, #efe9e4); }
.mk-front-card img { max-width: none; max-height: none; height: 94%; width: auto; border-radius: 4px; mix-blend-mode: normal; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.mk-noimg { font-size: 40px; color: #d1c3b6; font-weight: 700; }
.mk-back { transform: rotateY(180deg); padding: 12px 14px; overflow: auto; font-size: 12.5px; line-height: 1.5; color: #4a3a22;
	background: #f3e4c4 linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(160, 110, 40, .18)); border: 1px solid #d9bf8a; }
.mk-back p { margin: 0 0 2px; }
.mk-desc { padding: 8px 10px; margin: 0 0 8px; background: rgba(255, 255, 255, .93); border-radius: 6px; color: #333; font-size: 12px; line-height: 1.45;
	box-shadow: 0 1px 4px rgba(90, 60, 20, .2); word-wrap: break-word; }
.mk-desc-gap { display: block; height: 4px; }
.mk-desc-sub { font-size: 12px; }
.tr-card .mk-desc-seller, .mk-desc-seller { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #4a3a22; text-transform: uppercase; }
.mk-back b { color: #3a2a12; }
@media (prefers-reduced-motion: reduce) { .mk-media-in, .mk-item { transition: none; } }

.mk-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 14px 14px; }
.mk-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mk-muted); }
.mk-qty { padding: 2px 7px; border-radius: 5px; background: #897a6c; color: #fff; font-size: 11px; }
.mk-body h4 { margin: 4px 0 6px; font-size: 14.5px; line-height: 1.3; color: var(--mk-ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Cards in an item: small pictures, hover / tap shows the card box */
.mk-item { position: relative; overflow: visible; }
.mk-item:hover, .mk-item:focus-within { z-index: 5; }
.mk-cards { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin: 2px 12px 6px 0; vertical-align: top; }
.mk-cards-tag { align-self: center; padding: 2px 6px; border-radius: 4px; background: #d58641; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.mk-cardchip { position: relative; display: inline-flex; width: 30px; height: 40px; border: 1px solid #c9a74a; border-radius: 4px; overflow: visible; background: #fff8e1; cursor: help; }
.mk-cardchip > img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.mk-cardchip > i { margin: auto; font-style: normal; color: #a08030; font-weight: 700; }
.mk-cardchip:focus-visible { outline: 2px solid var(--mk-blue); outline-offset: 2px; }
.mk-cardtip { position: absolute; left: -10px; bottom: calc(100% + 10px); z-index: 30; display: flex; gap: 14px; width: max-content; max-width: min(340px, 86vw);
	padding: 12px; border-radius: 12px; background: #1c1c1e; color: #e9e9ea; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.mk-cardchip:hover .mk-cardtip, .mk-cardchip:focus .mk-cardtip { opacity: 1; visibility: visible; transform: none; }
.mk-cardtip-art { flex: 0 0 auto; padding: 8px; border-radius: 8px; background: #2a2a2d; }
.mk-cardtip-art img { display: block; width: 76px; height: 101px; border-radius: 3px; }
.mk-cardtip-text { display: flex; flex-direction: column; gap: 6px; min-width: 150px; font-size: 12px; line-height: 1.45; }
.mk-cardtip-text strong { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #3a3a3d; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.mk-cardtip-text strong i { width: 8px; height: 8px; border-radius: 50%; background: #e9a061; flex: 0 0 auto; }
.mk-cardtip-list { display: flex; flex-direction: column; gap: 2px; }
.mk-cardtip-list span::before { content: "\2022  "; color: #9a9aa0; }
.mk-cards-ench .mk-cards-tag { background: #16a34a; }
.mk-cards-ench .mk-cardchip { width: 34px; height: 34px; border-color: #7ccf98; background: #effaf2; }
.mk-cards-ench .mk-cardchip > img { object-fit: contain; padding: 3px; box-sizing: border-box; }
.mk-cards-ench .mk-cardtip-art { display: flex; align-items: center; justify-content: center; width: 76px; height: 101px; padding: 8px; background: #fff; }
.mk-cards-ench .mk-cardtip-art img { width: 48px; height: 48px; image-rendering: pixelated; }
.mk-cards-ench .mk-cardtip-text strong i { background: #22c55e; }
.mk-cards + .mk-cards { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .mk-cardtip { transition: none; } }
.mk-cardlist { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.mk-cardlist li { padding: 2px 7px; border-radius: 5px; background: #fbf3df; color: #7a5410; font-size: 11px; }
.mk-price, .tr-card .mk-price { margin: auto 0 0; padding-top: 8px; font-size: 18px; font-weight: 700; color: #15803d; font-variant-numeric: tabular-nums; }
.mk-real { display: block; font-size: 12px; font-weight: 600; color: #7b6d60; }
.mk-real:empty { display: none; }
.mk-buy-sum .mk-real { display: block; }
.mk-cur { flex: 0 1 170px; }
.mk-per { font-size: 13px; font-weight: 600; color: #15803d; }
.mk-qty-max { font-weight: 400; color: var(--mk-muted); }
.mk-qty-box { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mk-qty-box input { width: 80px; min-height: 40px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--mk-line); border-radius: 8px; text-align: center; font: 600 15px var(--font, sans-serif); color: var(--mk-ink); }
.mk-qty-btn { width: 40px; height: 40px; border: 1px solid var(--mk-line); border-radius: 8px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--mk-ink); }
.mk-qty-box .mk-btn { margin-left: auto; }
#mk-qty-wrap[hidden] { display: none; }
.mk-owner { margin: 2px 0 12px; font-size: 12px; font-style: italic; color: var(--mk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-buy { width: 100%; }

/* Pages */
.mk-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 0; }
.mk-pages a, .mk-pages span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
	border: 1px solid var(--mk-line); color: var(--mk-ink); text-decoration: none; font-size: 14px; }
.mk-pages span.is-on { background: var(--mk-dark); border-color: var(--mk-dark); color: #fff; }
.mk-pages a:hover { background: var(--mk-soft); }

/* Buy popup */
.mk-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 80px rgba(44, 26, 11, .35); }
.mk-dialog::backdrop { background: rgba(34, 22, 11, .55); }
.mk-dialog-in { position: relative; padding: 24px; font-family: var(--font, sans-serif); color: var(--mk-ink); }
.mk-dialog h2 { margin: 0 0 16px; font-size: 20px; }
.mk-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--mk-soft); font-size: 22px; line-height: 1; cursor: pointer; color: var(--mk-ink); }
.mk-buy-item { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mk-buy-item div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--mk-muted); }
.mk-buy-item strong { font-size: 16px; color: var(--mk-ink); }
.mk-buy-sum { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.mk-buy-sum th, .mk-buy-sum td { padding: 7px 0; border-bottom: 1px solid #f6f2ee; text-align: left; }
.mk-buy-sum td { text-align: right; font-variant-numeric: tabular-nums; }
.mk-low { margin: 0 0 12px; padding: 12px; border-radius: 10px; background: #fff7e6; border: 1px solid #f3d08a; text-align: center; }
.mk-low[hidden] { display: none; }
.mk-low p { margin: 0 0 10px; font-size: 14px; color: #7a4b00; }
.tr-card .mk-btn-topup, .mk-btn-topup { width: 100%; background: #f59e0b; color: #1c1300; font-weight: 700; }
.tr-card .mk-btn-topup:hover, .mk-btn-topup:hover { background: #fbbf24; color: #1c1300; }
.mk-field { display: block; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.mk-field select { margin-top: 6px; }
.mk-dialog-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* Sell / history */
.mk-steps { margin: 0; padding: 0; list-style: none; counter-reset: mk; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mk-steps li { counter-increment: mk; position: relative; padding: 16px 16px 16px 58px; border-radius: 12px; background: #fbf8f6; border: 1px solid var(--mk-line); font-size: 14px; }
.mk-steps li::before { content: counter(mk); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
	background: var(--mk-dark); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mk-steps strong { display: block; margin-bottom: 4px; color: var(--mk-ink); }
.mk-steps span { color: var(--mk-muted); }
.mk-wait { background: #f2fbf5; border-color: #cbe9d5; }
.mk-wait ul { margin: 0; padding-left: 18px; }
.mk-table-wrap { overflow-x: auto; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-table th { text-align: left; padding: 8px 10px; font-size: 12px; text-transform: none; color: var(--mk-muted); border-bottom: 1px solid var(--mk-line); background: transparent; }
.mk-table td { padding: 10px; border-bottom: 1px solid #f6f2ee; vertical-align: middle; }
.mk-td-item { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.mk-td-item small { display: block; color: var(--mk-muted); font-size: 12px; }
.mk-table form { margin: 0; }
.mk-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: #f5f1ee; color: #7e6651; white-space: nowrap; }
.mk-tag-ok { background: #e3f5ea; color: #1d6b3a; }
.mk-tag-wait { background: #fff3d6; color: #8a5a00; }

.mk-layout > *, .mk-grid > * { min-width: 0; }

/* Tablet */
@media (max-width: 1000px) {
	.mk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mk-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
	.mk-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
}
/* Phone + small tablet: type list becomes a sideways strip above the items */
@media (max-width: 760px) {
	.mk-layout { grid-template-columns: minmax(0, 1fr); }
	.mk-cats { position: static; padding: 8px; overflow: hidden; }
	.mk-cats h3 { display: none; }
	.mk-cats ul { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.mk-cats ul::-webkit-scrollbar { display: none; }
	.mk-cats li { flex: 0 0 auto; }
	.mk-cats a { white-space: nowrap; padding: 8px 12px 8px 8px; background: #fff; }
	.mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mk-stats > div:last-child { grid-column: 1 / -1; }
	.mk-tabs { border-radius: 16px; }
	.mk-tabs .mk-bal { margin-left: 0; width: 100%; text-align: center; }
	.mk-bar .mk-search { flex: 1 1 100%; }
	.mk-bar .mk-sort { flex: 1 1 auto; }
	.mk-bar > .mk-btn { flex: 0 0 auto; }
	.mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mk-media { height: 150px; margin: 8px 8px 0; }
	.mk-body { padding: 10px; }
	.mk-price, .tr-card .mk-price { font-size: 16px; }
	.mk-box { padding: 16px; }
	.mk-latest li { gap: 10px; }
	.mk-dialog-in { padding: 20px 16px; }
	.mk-dialog-btns .mk-btn { flex: 1 1 0; }
}
/* ---------- v3 (2026-11-27): filters, auctions, stars, item page, wanted, rating ---------- */
.mk-adv { flex: 1 1 100%; border: 1px solid var(--mk-line); border-radius: 10px; background: #fdfaf8; }
.mk-adv summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--mk-ink); }
.mk-adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; padding: 4px 14px 14px; align-items: end; }
.mk-adv-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mk-muted); }
.mk-adv-grid input[type=text], .mk-adv-grid select { min-height: 38px; padding: 0 10px; border: 1px solid var(--mk-line); border-radius: 8px; background: #fff; font: 14px var(--font, sans-serif); color: var(--mk-ink); box-sizing: border-box; }
.mk-adv-grid .mk-adv-check { flex-direction: row; align-items: center; gap: 8px; min-height: 38px; color: var(--mk-ink); }
.mk-adv-btns { display: flex; gap: 8px; }
.mk-body h4 a { color: inherit; text-decoration: none; }
.mk-body h4 a:hover { color: var(--mk-blue); text-decoration: underline; }
.mk-auc { margin: 2px 0 0; font-size: 12px; color: #9a5b00; font-weight: 600; }
.mk-auc-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #f59e0b; color: #1c1300; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.tr-card .mk-price.mk-price-z, .mk-price.mk-price-z { color: #8a5a00; }
.mk-stars { display: inline-flex; align-items: center; gap: 1px; font-style: normal; font-size: 12px; color: var(--mk-muted); white-space: nowrap; }
.mk-stars i { font-style: normal; color: #e1dad4; }
.mk-stars i.on { color: #f5a623; }
.mk-stars b { margin-left: 3px; color: var(--mk-ink); }
.mk-stars-none { font-size: 11px; }
.mk-trusted { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #e3f5ea; color: #1d6b3a; font-style: normal; font-size: 10px; font-weight: 700; }
.mk-owner .mk-stars { display: block; margin-top: 2px; font-style: normal; }

.mk-back-link { margin: 0 0 14px; font-size: 14px; }
.mk-back-link a { color: var(--mk-blue); text-decoration: none; }
.mk-ihead { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; margin: 0 0 22px; }
.mk-ihead-pic { display: flex; align-items: center; justify-content: center; height: 300px; border: 1px solid var(--mk-line); border-radius: 14px; background: linear-gradient(#fff 55%, #f2ede9); }
.mk-ihead-pic img { height: 80%; width: auto; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
.mk-ihead-pic.is-card img { height: 92%; mix-blend-mode: normal; border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.mk-ihead-type { margin: 0 0 4px; font-size: 13px; color: var(--mk-muted); }
.mk-ihead h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 32px); color: var(--mk-ink); }
.mk-idesc { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fbf6ea; border: 1px solid #efe2c2; font-size: 14px; line-height: 1.55; color: #333; }
.mk-istats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.mk-istats > div { padding: 10px 12px; border: 1px solid var(--mk-line); border-radius: 10px; background: #fbf8f6; }
.mk-istats dt { font-size: 12px; color: var(--mk-muted); }
.mk-istats dd { margin: 2px 0 0; font-weight: 700; color: var(--mk-ink); }
.mk-iactions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mk-watch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 13px; color: var(--mk-muted); }
.mk-watch input { width: 110px; min-height: 34px; margin: 0 4px; padding: 0 8px; border: 1px solid var(--mk-line); border-radius: 8px; }
.mk-watch-on { color: #b7791f; font-weight: 600; }
.mk-box h3 small { font-weight: 400; font-size: 13px; color: var(--mk-muted); }
.mk-chart { display: block; width: 100%; max-width: 900px; height: auto; background: #fdfaf8; border-radius: 10px; }
.mk-chart-scale { display: flex; justify-content: space-between; max-width: 900px; margin: 6px 0 0; font-size: 12px; color: var(--mk-muted); }
.mk-ilist { list-style: none; margin: 0; padding: 0; }
.mk-irow { display: grid; grid-template-columns: minmax(0, 1fr) 220px 260px; gap: 12px 20px; align-items: center; padding: 14px 4px; border-top: 1px solid #f6f2ee; }
.mk-irow:first-child { border-top: 0; }
.mk-irow:target { background: #fff8e6; border-radius: 10px; }
.mk-irow-main { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--mk-muted); min-width: 0; }
.mk-irow-main strong { font-size: 15px; color: var(--mk-ink); }
.mk-irow-price { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--mk-muted); }
.mk-irow-price b { font-size: 18px; color: #15803d; }
.mk-irow-act { text-align: right; }
.mk-bidbox form { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-end; margin: 0; }
.mk-bidbox label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--mk-muted); text-align: left; }
.mk-bidbox input, .mk-bidbox select { min-height: 34px; padding: 0 8px; border: 1px solid var(--mk-line); border-radius: 8px; font: 14px var(--font, sans-serif); max-width: 140px; box-sizing: border-box; }
.mk-bids { grid-column: 1 / -1; font-size: 13px; color: var(--mk-muted); }
.mk-bids summary { cursor: pointer; }
.mk-bids ol { margin: 8px 0 0; padding: 0; list-style: none; max-width: 560px; }
.mk-bids li { display: grid; grid-template-columns: minmax(0, 1fr) auto 80px; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; }
.mk-bids li:nth-child(odd) { background: #fbf8f6; }
.mk-bids li.is-top { background: #fff3e0; }
.mk-bids li em { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #f26a00; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.mk-bidder { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--mk-ink); }
.mk-bidder img { flex: 0 0 auto; width: 24px; height: 24px; image-rendering: pixelated; }
.mk-bid-ago { text-align: right; }
.mk-wantform { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.mk-wantform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mk-muted); }
.mk-wantform input, .mk-wantform select { min-height: 40px; padding: 0 10px; border: 1px solid var(--mk-line); border-radius: 8px; font: 14px var(--font, sans-serif); color: var(--mk-ink); box-sizing: border-box; width: 100%; }
.mk-rate { display: inline-flex; flex-direction: row-reverse; gap: 0; margin: 0; }
.mk-rate button { padding: 0 1px; border: 0; background: none; font-size: 18px; line-height: 1; color: #e1dad4; cursor: pointer; }
.mk-rate button:hover, .mk-rate button:hover ~ button, .mk-rate button:focus-visible, .mk-rate button:focus-visible ~ button { color: #f5a623; }
@media (max-width: 900px) {
	.mk-ihead { grid-template-columns: 1fr; }
	.mk-ihead-pic { height: 220px; }
	.mk-irow { grid-template-columns: 1fr; }
	.mk-irow-act, .mk-bidbox form { text-align: left; justify-content: flex-start; }
}
@media (max-width: 500px) {
	.mk-istats { grid-template-columns: 1fr; }
}

/* Auctions button: on fire while auctions are live */
.tr-card .mk-btn-fire, .mk-btn-fire { position: relative; overflow: visible; color: #fff; border: 0;
	background: linear-gradient(90deg, #e8452c, #f97316, #e8452c); background-size: 200% 100%;
	box-shadow: 0 0 0 0 rgba(249, 115, 22, .55), 0 6px 18px -6px rgba(232, 69, 44, .8);
	animation: mk-fire-bg 2.4s linear infinite, mk-fire-glow 1.6s ease-in-out infinite; }
.tr-card .mk-btn-fire:hover, .mk-btn-fire:hover { color: #fff; filter: brightness(1.08); }
.mk-btn-fire b { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.mk-fire-badge { position: absolute; top: -9px; right: -8px; padding: 2px 6px; border-radius: 6px; background: #fff; color: #e8452c;
	font-size: 10px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); animation: mk-fire-blink 1.2s ease-in-out infinite; }
.mk-btn-fire::after { content: ""; position: absolute; left: 10%; right: 10%; top: -6px; height: 12px; border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(255, 200, 80, .7), rgba(255, 120, 40, 0) 70%); filter: blur(2px);
	animation: mk-fire-flicker .9s ease-in-out infinite alternate; pointer-events: none; }
.tr-card .mk-btn-quiet, .mk-btn-quiet { color: var(--mk-muted); }
@keyframes mk-fire-bg { to { background-position: 200% 0; } }
@keyframes mk-fire-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .5), 0 6px 18px -6px rgba(232, 69, 44, .8); } 50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0), 0 8px 24px -4px rgba(232, 69, 44, .9); } }
@keyframes mk-fire-blink { 50% { transform: scale(1.12); } }
@keyframes mk-fire-flicker { from { opacity: .45; transform: scaleX(.9); } to { opacity: 1; transform: scaleX(1.05) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .mk-btn-fire, .mk-fire-badge, .mk-btn-fire::after { animation: none; } }

/* Auction item card: fire border that moves + breathing glow, orange blinking Bid button */
.mk-item.mk-item-auc { border: 2px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #ff3d00, #ffb300, #ff6d00, #ffd54f, #ff3d00) border-box;
	background-size: 100% 100%, 300% 300%;
	animation: mk-auc-border 3s linear infinite, mk-auc-breathe 2.2s ease-in-out infinite; }
.mk-item.mk-item-auc .mk-media { background: linear-gradient(180deg, #fff4e6, #ffe0bf); }
.tr-card .mk-item-auc .mk-buy, .mk-item-auc .mk-buy { border: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); background: linear-gradient(90deg, #d84300, #f26a00, #d84300); background-size: 200% 100%;
	animation: mk-fire-bg 1.8s linear infinite, mk-auc-blink 1.1s ease-in-out infinite; }
.tr-card .mk-item-auc .mk-buy:hover, .mk-item-auc .mk-buy:hover { color: #fff; filter: brightness(1.1); animation-play-state: paused; }
@keyframes mk-auc-border { to { background-position: 0 0, 300% 0; } }
@keyframes mk-auc-breathe {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, .25), 0 4px 14px -6px rgba(255, 61, 0, .45); }
	50% { box-shadow: 0 0 22px 4px rgba(255, 145, 0, .45), 0 8px 26px -6px rgba(255, 61, 0, .6); } }
@keyframes mk-auc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { .mk-item.mk-item-auc, .mk-item-auc .mk-buy { animation: none; } }

/* Wide PC screens: bigger cards (must stay after the base rules) */
@media (min-width: 1300px) {
	.mk-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
	.mk-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
	.mk-media { height: 230px; }
	.mk-body h4 { font-size: 15.5px; }
	.mk-price, .tr-card .mk-price { font-size: 20px; }
}
@media (max-width: 400px) {
	.mk-grid { gap: 8px; }
	.mk-media { height: 130px; }
	.mk-meta { flex-wrap: wrap; }
	.mk-hero-btns .mk-btn { flex: 1 1 100%; }
}

/* ---- Bidding war stage (2026-11-28): podium with chibi job art, rolling price, countdown ---- */
.mk-war { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin: 6px 0 4px; padding: 12px;
	border-radius: 16px; background: linear-gradient(160deg, #fef4eb 0%, #fffbf7 45%, #fff4e4 100%); border: 1px solid #f2e0d0; }
.mk-war-stage { position: relative; min-width: 0; padding: 12px 10px 10px; border-radius: 14px; overflow: hidden;
	background: radial-gradient(ellipse at 50% 100%, rgba(255, 214, 102, .45), transparent 60%), linear-gradient(180deg, #fcddc2 0%, #fef3e9 55%, #fdf6e8 100%); }
.mk-war-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
	background-image: radial-gradient(#fff 1.4px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.2px);
	background-size: 46px 46px, 29px 29px; background-position: 0 0, 13px 19px; animation: mk-war-twinkle 6s linear infinite; }
@keyframes mk-war-twinkle { from { background-position: 0 0, 13px 19px; } to { background-position: 0 -46px, 13px -10px; } }
.mk-war-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.mk-war-title { font-weight: 800; font-size: 16px; letter-spacing: .5px; color: #633812; text-transform: uppercase; }
.mk-war-live { padding: 3px 10px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px; animation: mk-war-blink 1.2s ease-in-out infinite; }
.mk-war.is-ended .mk-war-live { background: #897666; animation: none; }
@keyframes mk-war-blink { 50% { opacity: .45; } }

.mk-war-podium { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; min-height: 320px; }
.mk-war-slot { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.mk-war-chibi { display: block; height: 175px; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; margin: 4px auto -12px; position: relative; z-index: 1;
	filter: drop-shadow(0 6px 6px rgba(99, 56, 18, .25)); animation: mk-war-idle 3s ease-in-out infinite; }
.mk-war-slot.p1 .mk-war-chibi { height: 230px; animation-duration: 2.4s; }
.mk-war-slot.p2 .mk-war-chibi { animation-delay: -.8s; }
.mk-war-slot.p3 .mk-war-chibi { animation-delay: -1.6s; }
@keyframes mk-war-idle { 50% { transform: translateY(-5px); } }
.mk-war-base { width: 92%; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50% / 40%; font-weight: 900; font-size: 18px; color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35); background: linear-gradient(180deg, #e0d5cc, #b7a595); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 4px 10px rgba(99, 56, 18, .18); }
.mk-war-slot.p1 .mk-war-base { height: 46px; font-size: 22px; background: linear-gradient(180deg, #ffe08a, #f5a524); box-shadow: inset 0 -7px 0 rgba(150, 80, 0, .25), 0 0 18px rgba(255, 190, 40, .65); }
.mk-war-slot.p3 .mk-war-base { background: linear-gradient(180deg, #f3c09a, #c7793f); }
.mk-war-name { margin-top: 6px; max-width: 100%; font-weight: 800; font-size: 14px; color: #633812; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-war-slot.p1 .mk-war-name { font-size: 15px; color: #b45309; }
.mk-war-guild { max-width: 100%; font-size: 11.5px; color: #15803d; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-war-bubble { position: relative; z-index: 2; margin-bottom: -4px; padding: 3px 10px; border-radius: 999px; background: #fff; color: #633812; font-weight: 800; font-size: 13px;
	box-shadow: 0 2px 6px rgba(99, 56, 18, .2); font-variant-numeric: tabular-nums; }
.mk-war-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #fff; }
.mk-war-slot.p1 .mk-war-bubble { background: #f26a00; color: #fff; }
.mk-war-slot.p1 .mk-war-bubble::after { border-top-color: #f26a00; }
.mk-war-crown { position: relative; z-index: 3; margin-bottom: 2px; line-height: 1; font-size: 26px; color: #f5a524; text-shadow: 0 2px 4px rgba(150, 80, 0, .4); animation: mk-war-idle 2.4s ease-in-out infinite; }
.mk-war-ghost { width: 70%; max-width: 110px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin: 0 auto -10px; border-radius: 50%;
	background: rgba(255, 255, 255, .55); border: 2px dashed #ddbc9f; color: #c49e7d; font-size: 34px; font-weight: 800; }
.mk-war-slot.is-empty .mk-war-name { color: #c49e7d; font-weight: 600; }
.mk-war.is-hit .mk-war-slot.p1 .mk-war-chibi { animation: mk-war-jump .7s ease-out 1, mk-war-idle 2.4s ease-in-out .7s infinite; }
@keyframes mk-war-jump { 30% { transform: translateY(-22px) scale(1.06); } 60% { transform: translateY(0) scale(.98); } }

.mk-war-toast { position: absolute; left: 10px; right: 10px; top: 42px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.mk-war-pop { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(56, 35, 17, .88); color: #fff; font-size: 13px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25); animation: mk-war-pop 6s ease forwards; }
.mk-war-pop img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; background: #fff; }
.mk-war-pop b { color: #ffb020; }
@keyframes mk-war-pop { 0% { opacity: 0; transform: translateY(-12px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.mk-war-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-war-pricebox { padding: 10px 12px 12px; border-radius: 14px; text-align: center; background: linear-gradient(180deg, #a25f24, #633812); color: #fdebdc;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.mk-war-lbl { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.mk-war-cur { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #f9c597; }
.mk-odo { display: flex; justify-content: center; gap: 3px; }
.mk-odo-d { position: relative; display: inline-block; width: 1.25em; height: 1.6em; overflow: hidden; border-radius: 6px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 800;
	line-height: 1.6em; color: #633812; background: linear-gradient(180deg, #fff 0%, #f9efe7 50%, #f2e2d4 51%, #fff 100%); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); font-variant-numeric: tabular-nums; }
.mk-odo-col { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; height: 1000%; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.mk-odo-col span { height: 10%; display: flex; align-items: center; justify-content: center; }
.mk-war.is-hit .mk-war-pricebox { animation: mk-war-flash .8s ease-out 1; }
@keyframes mk-war-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .9); } 100% { box-shadow: 0 0 0 14px rgba(255, 176, 32, 0); } }

.mk-war-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #eee5dd; }
.mk-war-item img { flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; }
.mk-war-item > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-war-item b { color: var(--mk-ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-war-timer { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #633812; color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-war.is-hurry .mk-war-timer { background: #e11d48; animation: mk-war-blink 1s ease-in-out infinite; }
.mk-war-next { margin: 0; font-size: 13px; color: var(--mk-muted); }
.mk-war-next b { color: #f26a00; }
.mk-war-tablewrap { max-height: 220px; overflow: auto; border-radius: 12px; border: 1px solid #eee5dd; background: #fff; }
.mk-war-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-war-table th { position: sticky; top: 0; padding: 7px 8px; background: #633812; color: #fff; font-weight: 700; text-align: left; }
.mk-war-table td { padding: 5px 8px; border-top: 1px solid #f6f2ee; color: var(--mk-ink); }
.mk-war-table th:nth-child(3), .mk-war-table td:nth-child(3), .mk-war-table th:nth-child(4), .mk-war-table td:nth-child(4) { text-align: right; }
.mk-war-table tr.is-top td { background: #fff3e0; font-weight: 700; }
.mk-war-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mk-war-who img { flex: 0 0 auto; width: 28px; height: 28px; object-fit: contain; }
.mk-war-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-war-amt { font-variant-numeric: tabular-nums; color: #15803d; font-weight: 700; }
.mk-war-none { text-align: center !important; color: var(--mk-muted) !important; padding: 14px 8px !important; }

@media (max-width: 900px) {
	.mk-war { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
	.mk-war { padding: 8px; }
	.mk-war-podium { min-height: 230px; gap: 2px; }
	.mk-war-name { font-size: 12px; }
	.mk-war-slot.p1 .mk-war-name { font-size: 13px; }
	.mk-war-bubble { font-size: 11px; padding: 2px 7px; }
	.mk-war-crown { font-size: 20px; }
	.mk-war-chibi { height: 110px; }
	.mk-war-slot.p1 .mk-war-chibi { height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
	.mk-war-stage::before, .mk-war-chibi, .mk-war-crown, .mk-war-live, .mk-war-timer, .mk-war-pop { animation: none !important; }
	.mk-odo-col { transition: none; }
}

/* Bidding war on top of the item page (2026-11-28); keep the podium tidy on very wide screens */
.mk-war.mk-war-top { margin: 0 0 22px; }
.mk-war-podium { max-width: 820px; margin: 0 auto; width: 100%; }
.mk-war-base { max-width: 240px; }
.mk-war-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mk-war-go { margin-left: auto; }
@media (min-width: 1300px) { .mk-war { grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); } }
.mk-war-bubble { white-space: nowrap; }
@media (max-width: 500px) { .mk-war-bubble { font-size: 10px; padding: 2px 6px; } .mk-war-base { font-size: 14px; } .mk-war-slot.p1 .mk-war-base { font-size: 17px; } }

/* 2026-12-02 Cash Out button + request page */
.tr-card .mk-btn-cash, .mk-btn-cash { background: #16a34a; color: #fff; border: 0; font-weight: 700; box-shadow: 0 4px 12px rgba(22, 163, 74, .3); }
.tr-card .mk-btn-cash:hover, .mk-btn-cash:hover { background: #15803d; color: #fff; }
.mk-btn-cash > span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 13px; }
.mk-co { max-width: 760px; }
.mk-co-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; padding: 10px 14px; list-style: none; border-radius: 10px; background: var(--mk-soft); font-size: 14px; }
.mk-coform { display: flex; flex-direction: column; gap: 14px; }
.mk-co-q { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--mk-line); border-radius: 10px; }
.mk-co-q > span { font-weight: 600; color: var(--mk-ink); }
.mk-co-q i, .mk-co-agree i { color: #dc2626; font-style: normal; }
.mk-co-q small { font-size: 13px; color: var(--mk-muted); }
.mk-co-q input, .mk-co-q select, .mk-co-gmform input { min-height: 40px; padding: 0 10px; border: 1px solid var(--mk-line); border-radius: 8px; font: 14px var(--font, sans-serif); color: var(--mk-ink); box-sizing: border-box; width: 100%; margin-top: 4px; }
.mk-co-agree { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 14px; }
.mk-co-agree input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.mk-co-warn { margin: 0; font-size: 13px; color: #b45309; }
.mk-coform > .mk-btn-cash { align-self: flex-start; min-height: 46px; padding: 0 26px; }
.mk-co-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mk-co-pending { background: #fef3c7; color: #92400e; }
.mk-co-paid { background: #dcfce7; color: #166534; }
.mk-co-rejected { background: #fee2e2; color: #991b1b; }
.mk-co-cancel { background: #ebe8e5; color: #62564c; }
.mk-co-note { display: block; margin-top: 4px; font-size: 12px; color: var(--mk-muted); }
.mk-co-gmform { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-width: 220px; }
.mk-co-gmform input { margin-top: 0; min-height: 34px; }
@media (max-width: 600px) { .mk-coform > .mk-btn-cash { align-self: stretch; } }
/* 2026-12-02 Cash Out amount buttons */
fieldset.mk-co-amts { margin: 0; min-width: 0; }
fieldset.mk-co-amts legend { padding: 0; font-weight: 600; color: var(--mk-ink); }
.mk-co-amtrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.mk-co-amt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 70px; padding: 10px 6px; border: 2px solid var(--mk-line); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, box-shadow .15s; }
.mk-co-amt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-co-amt b { font-size: 17px; color: var(--mk-ink); }
.mk-co-amt small { font-size: 12px; color: var(--mk-muted); }
.mk-co-amt:hover { border-color: #86efac; background: #f0fdf4; }
.mk-co-amt:has(input:checked) { border-color: #16a34a; background: #dcfce7; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.mk-co-amt:has(input:checked) small { color: #166534; font-weight: 600; }
.mk-co-amt:has(input:focus-visible) { outline: 3px solid var(--mk-blue); outline-offset: 2px; }
.mk-co-amt.is-low { opacity: .45; cursor: not-allowed; background: #fcfaf8; }
.mk-co-amt.is-low:hover { border-color: var(--mk-line); background: #fcfaf8; }
@media (max-width: 600px) { .mk-co-amtrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-co-wait { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fef3c7; border: 1px solid #fde68a; color: #92400e; font-size: 14px; } /* 2026-12-02 24h cash out limit */
.mk-co-time { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fef7f0; border: 1px solid #fbddc2; color: #865122; font-size: 14px; } /* 2026-12-02 processing time note */
/* 2026-12-02 Cash Out 30% fee */
.mk-co-fee { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 14px; }
.mk-co-amt s { font-size: 12px; color: var(--mk-muted); }
.mk-co-amt .mk-co-amtm { color: #166534; font-weight: 600; }
.mk-co-sum { display: grid; gap: 4px; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--mk-soft); font-size: 14px; }
.mk-co-sum[hidden] { display: none; }
.mk-co-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.mk-co-sum > div:nth-child(2) b { color: #b91c1c; }
.mk-co-sum-get { padding-top: 6px; border-top: 1px dashed var(--mk-line); font-size: 16px; }
.mk-co-sum-get b { color: #166534; }
.mk-co-q small .mk-co-red, .mk-co-red { color: #dc2626; font-weight: 700; } /* 2026-12-02 red fee text */
.mk-co { margin-left: auto; margin-right: auto; width: 100%; box-sizing: border-box; } /* 2026-12-02 center Cash Out form */
.mk-co { max-width: 1200px; } /* 2026-12-02 wider Cash Out form, about the wiki content width */
.mk-co-online { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; font-size: 14px; } /* 2026-12-02 must log out */
/* 2026-12-02 bidding war: big clock above 1st place, final 10 minutes, closed, winner congratulations */
.mk-war-stage { position: relative; }
.mk-war-clockbox { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.mk-war-clock { padding: 4px 16px; border-radius: 999px; background: #452911; color: #fff; font: 800 22px/1.2 var(--font, sans-serif); letter-spacing: 1px; font-variant-numeric: tabular-nums; box-shadow: 0 4px 12px rgba(69, 41, 17, .35); }
.mk-war-phase { font-size: 11px; font-weight: 700; color: #452911; text-transform: uppercase; letter-spacing: .5px; }
.mk-war.is-final .mk-war-clock { background: #dc2626; animation: mkClockPulse 1s ease-in-out infinite; }
.mk-war.is-final .mk-war-phase { color: #b91c1c; }
.mk-war.is-closed .mk-war-clock { background: #6b7280; animation: none; }
.mk-war-go[hidden] { display: none !important; }
.mk-final-out { font-weight: 700; color: #b91c1c; }
@keyframes mkClockPulse { 50% { transform: scale(1.06); } }
.mk-war-congrats { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: inherit; background: radial-gradient(circle at 50% 40%, rgba(255, 244, 200, .97), rgba(255, 214, 120, .95)); }
.mk-war-congrats[hidden] { display: none; }
.mk-cg-card { position: relative; z-index: 2; text-align: center; animation: mkCgPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.mk-cg-trophy { display: block; font-size: 44px; line-height: 1; }
.mk-cg-title { margin: 4px 0; font: 900 34px/1.1 var(--font, sans-serif); color: #b45309; letter-spacing: 2px; text-shadow: 0 2px 0 #fff, 0 4px 10px rgba(180, 83, 9, .35); }
.mk-cg-chibi { display: block; height: 150px; margin: 6px auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); animation: mkCgBounce 1.4s ease-in-out infinite; }
.mk-cg-name { margin: 0; font-size: 22px; font-weight: 800; color: #452911; }
.mk-cg-text { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: #166534; }
.mk-cg-sub { margin: 4px 0 0; font-size: 12px; color: #6b4e16; }
.mk-cg-confetti { position: absolute; inset: 0; pointer-events: none; }
.mk-cg-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: mkCgFall 3s linear infinite; }
@keyframes mkCgFall { to { transform: translateY(460px) rotate(720deg); } }
@keyframes mkCgPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes mkCgBounce { 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .mk-war-clock { font-size: 18px; } .mk-cg-title { font-size: 24px; } .mk-cg-chibi { height: 110px; } }
@media (prefers-reduced-motion: reduce) { .mk-war.is-final .mk-war-clock, .mk-cg-card, .mk-cg-chibi, .mk-cg-confetti i { animation: none; } }
.mk-war-clockbox { top: 4px; } .mk-war-phase { padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); } .mk-war-phase:empty { display: none; } /* 2026-12-02 label over the crown */
.mk-war-clockbox { z-index: 30; } /* 2026-12-02 above the crown */
.tr-card .mk-war .mk-cg-title, .mk-war .mk-cg-title { margin: 4px 0; padding: 0; border: 0; font: 900 36px/1.1 var(--font, sans-serif); color: #b45309; letter-spacing: 2px; text-transform: none; } .tr-card .mk-war .mk-cg-title::after, .mk-war .mk-cg-title::after, .tr-card .mk-war .mk-cg-title::before, .mk-war .mk-cg-title::before { display: none; } .mk-war .mk-cg-chibi { height: 160px; width: auto; max-width: none; } /* 2026-12-02 congrats title */
/* 2026-12-02 v2: bigger clock, podium pushed down so the crown is free; final 10 min orange, last 5 min red blinking */
.mk-war-clockbox { top: 8px; gap: 4px; }
.mk-war-clock { padding: 6px 22px; font-size: 30px; border: 2px solid rgba(255, 255, 255, .7); }
.mk-war-phase { font-size: 12px; padding: 2px 10px; }
.mk-war-podium { margin-top: 78px; }
.mk-war.is-final .mk-war-clock { background: #ea580c; animation: none; }
.mk-war.is-final .mk-war-phase { color: #c2410c; }
.mk-war.is-final.is-hurry .mk-war-clock { background: #dc2626; animation: mk-clock-blink .8s steps(1, end) infinite; }
.mk-war.is-final.is-hurry .mk-war-phase { color: #b91c1c; }
.mk-war.is-closed .mk-war-clock { background: #6b7280; animation: none; }
@keyframes mk-clock-blink { 0% { background: #dc2626; color: #fff; } 50% { background: #fff; color: #dc2626; } }
@media (max-width: 600px) { .mk-war-clock { font-size: 22px; padding: 4px 14px; } .mk-war-podium { margin-top: 64px; } }
@media (prefers-reduced-motion: reduce) { .mk-war.is-final.is-hurry .mk-war-clock { animation: none; } }
.mk-lockchar { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--mk-line); border-radius: 8px; background: #f9f5f1; font-weight: 700; color: var(--mk-ink); } /* 2026-12-02 locked bid character */
.mk-war-bubble .mk-war-money { display: block; margin-top: 1px; font-size: 11px; font-weight: 700; opacity: .9; line-height: 1.2; } .mk-war-bubble { text-align: center; } /* 2026-12-02 money under Cash Points */
.mk-minadd { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #dc2626; } .mk-minadd b { color: #b91c1c; } /* 2026-12-02 minimum CP to add */
/* 2026-12-02 winner screen: won item card on the left */
.mk-cg-prize { position: absolute; left: 9%; top: 50%; z-index: 2; transform: translateY(-46%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 190px; animation: mkCgPop .7s .2s cubic-bezier(.2, 1.4, .4, 1) both; }
.mk-cg-got { margin: 0; padding: 4px 12px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 14px; font-weight: 800; text-align: center; box-shadow: 0 4px 10px rgba(22, 101, 52, .35); }
.mk-war .mk-cg-prize-img { display: block; width: 150px; height: auto; max-height: 210px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; border: 3px solid #f59e0b; animation: mkCgGlow 1.6s ease-in-out infinite; }
.mk-cg-prize-name { margin: 0; font-size: 14px; font-weight: 800; color: #452911; text-align: center; }
@keyframes mkCgGlow { 0%, 100% { box-shadow: 0 0 10px 2px rgba(245, 158, 11, .6); } 50% { box-shadow: 0 0 26px 8px rgba(250, 204, 21, .95); } }
@media (max-width: 900px) { .mk-cg-prize { display: none; } }
@media (prefers-reduced-motion: reduce) { .mk-cg-prize, .mk-war .mk-cg-prize-img { animation: none; } }
.tr-card .mk-war .mk-cg-got, .mk-war .mk-cg-got { color: #fff !important; line-height: 1.3; white-space: nowrap; } .mk-cg-prize { transform: translateY(-50%); width: auto; } .tr-card .mk-war .mk-cg-prize-img, .mk-war .mk-cg-prize-img { width: auto; height: 170px; max-width: 140px; max-height: none; } /* 2026-12-02 prize fixes */
.mk-cg-prize { top: 44%; } /* 2026-12-02 prize a bit higher */
.mk-raise-prev { margin: 4px 0 0; font-size: 13px; color: #452911; } .mk-raise-prev b { color: #166534; } .mk-raise-prev.is-low b { color: #dc2626; } .mk-raise-prev[hidden] { display: none; } /* 2026-12-02 raise preview */
