/* MARKET-CARDS — item detail card, navy/gold game frame */
.mc-dlg{--n0:#0e1420;--n1:#151d2d;--n2:#1d2840;--n3:#26345a;--gold:#d4b07a;--gold-hi:#f0d79a;--tx:#e8eef5;--mu:#9aa6b2;
 box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:88dvh;overflow:auto;padding:0;margin:auto;border:0;border-radius:16px;color:var(--tx);
 background:linear-gradient(180deg,var(--n2),var(--n0));box-shadow:0 0 0 2px #0a0f18,0 0 0 4px var(--gold),0 0 0 5px #6b5434,0 24px 80px #000a;
 font-family:var(--font-he);font-size:15px;line-height:1.5;line-height:1.5}
.mc-dlg::backdrop{background:#070b12cc;backdrop-filter:blur(2px)}
.mc-dlg a{color:var(--gold-hi)}
.mc-dlg .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mc-x{position:sticky;top:0;z-index:2;height:0;margin:0}
.mc-x button{position:absolute;box-shadow:0 0 0 4px #151d2d;inset-inline-end:10px;top:10px;width:32px;height:32px;border-radius:50%;border:1px solid var(--gold);background:var(--n1);color:var(--gold-hi);font-size:20px;line-height:1;cursor:pointer;padding:0}
.mc-x button:hover{background:var(--n3)}
.mc-body{padding:16px 16px 4px}
.mc-head{display:flex;gap:14px;align-items:center;padding:14px;padding-inline-end:48px;border-radius:12px;background:radial-gradient(120% 140% at 100% 0,#2c3b66 0,var(--n1) 60%);border:1px solid #d4b07a55}
.mc-head h2{margin:0;font-size:24px;color:#fff;line-height:1.25;text-shadow:0 1px 0 #000}
.mc-sub{color:var(--mu);font-size:14px}
.mc-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.mc-chip{display:inline-block;font-size:13px;font-weight:600;padding:2px 9px;border-radius:999px;background:#ffffff14;border:1px solid #ffffff22;color:var(--tx);white-space:nowrap}
.mc-chip.mc-gold{background:linear-gradient(180deg,#f3d58f,#c99b4f);color:#2a1d07;border-color:#7a5a20}
.mc-chip.mc-red{background:#7a2330;border-color:#c25563}
.mc-slot{flex:none;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:9px;background:linear-gradient(180deg,#2b3a5f,#18213a);border:1px solid #d4b07a66;box-shadow:inset 0 1px 0 #ffffff1a}
.mc-slot img{image-rendering:pixelated;max-width:34px;max-height:34px}
.mc-slot.mc-big{width:60px;height:60px;border-width:2px;border-color:var(--gold)}
.mc-slot.mc-big img{max-width:48px;max-height:48px}
.mc-sec{margin:12px 0;padding:12px 14px;border-radius:12px;background:#0b111c99;border:1px solid #ffffff14}
.mc-sec h3{display:flex;align-items:baseline;gap:8px;margin:0 0 10px;font-size:16px;font-weight:700;letter-spacing:normal;text-transform:none;color:var(--gold)}
.mc-craft{border-color:#d4b07a77;background:linear-gradient(180deg,#1a2440cc,#0b111ccc)}
.mc-craft>h3{font-size:17px;text-transform:none;letter-spacing:0;color:var(--gold-hi)}
.mc-fine{font-size:13px;color:var(--mu);font-weight:400;text-transform:none;letter-spacing:0;margin:4px 0 0}
.mc-dim{color:var(--mu)}
.mc-p{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:#ffe9a8;white-space:nowrap;font-variant-numeric:tabular-nums}
.mc-coin{width:14px;height:14px;image-rendering:pixelated}
.mc-bigprice{display:flex;align-items:baseline;gap:10px}
.mc-bigprice .mc-p{font-size:26px}.mc-bigprice .mc-coin{width:22px;height:22px}
.mc-range{margin:10px 0 6px}
.mc-bar{position:relative;height:8px;border-radius:6px;background:linear-gradient(90deg,#2d3b5c,#4a5f8f);border:1px solid #ffffff22}
[dir=rtl] .mc-bar{background:linear-gradient(270deg,#2d3b5c,#4a5f8f)}
.mc-bar i{position:absolute;top:-4px;width:6px;height:14px;margin-inline-start:-3px;border-radius:3px;background:var(--gold-hi);box-shadow:0 0 6px #f0d79a}
.mc-rl{display:flex;justify-content:space-between;align-items:center;margin-top:4px}.mc-rl .mc-p{font-weight:600;font-size:14px}
.mc-dlg .mc-kv{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:8px 0 0}.mc-kv>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.mc-kv dt{color:var(--mu);font-size:14px;font-weight:500}.mc-kv dd{margin:0;font-weight:700}
.mc-stats dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;margin:0}
.mc-stats dl>div{display:flex;justify-content:space-between}.mc-stats dt{color:var(--mu)}.mc-stats dd{margin:0;font-weight:700;color:#bfe3ff}
.mc-req{margin:6px 0 0;font-size:14px;color:#ffb3a0}
.mc-recipe{padding:10px;border-radius:10px;background:#0e1626;border:1px solid #ffffff12}.mc-recipe+.mc-recipe{margin-top:10px}
.mc-crafthead{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.mc-npc{flex:none;max-height:64px;max-width:56px;image-rendering:pixelated;filter:drop-shadow(0 2px 2px #000)}
.mc-craftname{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-weight:700;font-size:16px;color:#fff}
.mc-small{font-size:13px;margin-inline-start:6px}
.mc-mats,.mc-lines,.mc-uses{list-style:none;margin:0;padding:0}
.mc-mat{display:grid;grid-template-columns:40px 42px minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 0;border-top:1px dashed #ffffff18}
.mc-cnt{font-weight:800;color:var(--gold-hi);text-align:center}
.mc-mname{min-width:0;display:flex;flex-direction:column}.mc-mname>a,.mc-mname>.mc-nolink{font-weight:600}
.mc-note{font-size:13px;color:var(--mu);font-weight:400}.mc-note .mc-p{font-weight:500;color:#e9d9ad}.mc-note .mc-coin{width:11px;height:11px}
.mc-subrec{display:block;font-size:13px;color:#a9b7c9;margin-top:2px}.mc-subrec .mc-p{font-weight:500;color:#e9d9ad}.mc-subrec .mc-coin{width:11px;height:11px}
.mc-cost{text-align:end}
.mc-lines{margin-top:6px;border-top:1px solid #d4b07a55}
.mc-line{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:15px}
.mc-total{font-weight:800;font-size:16px;color:var(--gold-hi);border-top:1px solid #ffffff18;margin-top:2px;padding-top:7px}.mc-total .mc-p{font-size:17px}
.mc-uses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:260px;overflow:auto}
.mc-uses li{display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:9px;background:#ffffff08;border:1px solid #ffffff10}
.mc-uses li>a,.mc-uses li>.mc-nolink{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--tx);font-weight:600}
.mc-uses li>a .mc-uname{color:var(--gold-hi);text-decoration:underline;text-underline-offset:3px}
.mc-uses .mc-slot{width:34px;height:34px}.mc-uses .mc-slot img{max-width:30px;max-height:30px}
.mc-uses .mc-fine{margin:0}
a.mc-link{cursor:pointer}
.mc-sec p{margin:4px 0}
.mc-credit-in{margin:0;padding:8px 16px 14px;font-size:13px;color:var(--mu)}
.mc-credit{margin:18px 0 6px;max-width:900px;font-size:13px;color:#596258;text-align:start}
tr.row{cursor:pointer}
@media (max-width:640px){
 .mc-dlg{width:100%;max-width:100%;max-height:90dvh;margin:auto 0 0;border-radius:18px 18px 0 0;box-shadow:0 -2px 0 var(--gold),0 -20px 60px #000a}
 .mc-dlg::before{content:"";display:block;width:44px;height:5px;margin:8px auto 0;border-radius:3px;background:#ffffff40}
 .mc-body{padding:10px 12px 4px}.mc-head h2{font-size:21px}
 .mc-mat{grid-template-columns:36px 36px minmax(0,1fr) auto;gap:6px}
 .mc-uses{grid-template-columns:minmax(0,1fr)}
}
/* price chart */
.mc-chart{position:relative;margin:10px 0 4px;padding:8px 8px 6px;border-radius:10px;background:linear-gradient(180deg,#0f1729,#0a101c);border:1px solid #d4b07a40}
.mc-chart svg{display:block;width:100%;height:auto;touch-action:pan-y;overflow:visible}
.mc-g{stroke:#ffffff1c;stroke-dasharray:2 4}
.mc-gt{fill:#8b97a8;font-size:13px;font-family:var(--font-ui)}
.mc-area{fill:#d4b07a1f}
.mc-line{fill:none;stroke:#f0c766;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 3px #f0c76655)}
.mc-dot{fill:#ffe08a;stroke:#0a101c;stroke-width:1.2}
.mc-dot.on{r:5.5;fill:#fff3c4}
.mc-guide{stroke:#f0d79a66;stroke-width:1}
.mc-npcl{stroke-width:1.6;stroke-dasharray:6 5}
.mc-sb{stroke:#7fb3ff}.mc-sbt{fill:#9cc3ff}
.mc-shop{stroke:#7ee0a8}.mc-shopt{fill:#8fe8b5}
.mc-npct{font-size:13px;font-weight:600;font-family:var(--font-ui);paint-order:stroke;stroke:#0a101c;stroke-width:3px}
.mc-tip{position:absolute;z-index:3;pointer-events:none;display:flex;flex-direction:column;gap:1px;padding:6px 9px;border-radius:8px;background:#151d2df2;border:1px solid var(--gold);font-size:13px;white-space:nowrap;box-shadow:0 6px 18px #000a}
.mc-tip b{color:var(--gold-hi);font-weight:700}.mc-tip span{color:var(--mu)}
.mc-chart figcaption{display:flex;flex-direction:column;gap:4px;margin-top:4px}
.mc-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--tx)}
.mc-lg{display:inline-flex;align-items:center;gap:6px}
.mc-lg::before{content:"";display:inline-block;width:18px;height:0;border-top:3px solid #f0c766}
.mc-lg-sb::before{border-top:2px dashed #7fb3ff}.mc-lg-shop::before{border-top:2px dashed #7ee0a8}
.mc-tip[hidden]{display:none}
.mc-dot.mc-out{fill:#ff5a5f;stroke:#2a0b0e;stroke-width:1.4}
.mc-dot.mc-out.on{fill:#ff9a9d}
.mc-clip{fill:#ff5a5f;font-size:13px}
.mc-lg-out::before{width:9px;height:9px;border:0;border-radius:50%;background:#ff5a5f}
.mc-tip em{font-style:normal;color:#ff9a9d;white-space:normal;max-width:220px}
.mc-dlg .mc-ext{margin-top:4px}.mc-ext .mc-hi .mc-p{color:#ffb4a8}
.mc-eqnote{margin:8px 0 0;padding:8px 10px;border-radius:8px;background:#ffffff0a;border-inline-start:3px solid #d4b07a;font-size:14px;color:#c9d3df;line-height:1.5}
.mc-subh{margin:0 0 6px;font-size:14px;color:var(--mu)}
.mc-mobs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.mc-mobs li>a,.mc-mobs .mc-mobtx{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 6px;border-radius:999px;background:#ffffff0c;border:1px solid #ffffff1c;color:var(--tx);text-decoration:none;font-size:14px}
[dir=rtl] .mc-mobs li>a,[dir=rtl] .mc-mobs .mc-mobtx{padding:3px 6px 3px 10px}
.mc-mobs li>a:hover{border-color:var(--gold);background:#d4b07a1a}.mc-mobs li>a span{color:var(--gold-hi)}
.mc-mobs img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated}
.mc-nospr{display:inline-block;width:6px}
.mc-quests{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px;font-size:14px}
.mc-quests .mc-chip{font-size:13px}
