/* Self-contained trading chart styling. Load after the game's theme stylesheet. */
.modal:has(.market-chart-card){width:min(980px,96vw)}
.market-chart-card{--mc-surface:#0d1726;--mc-border:#27354a;--mc-text:#e0e9f6;--mc-muted:#8da0ba;color:var(--mc-text);background:linear-gradient(145deg,#121e30,#0c1523 74%);border:1px solid var(--mc-border);border-radius:17px;overflow:hidden;box-shadow:0 16px 38px #050b1730,inset 0 1px 0 #ffffff06;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.market-chart-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px 15px;border-bottom:1px solid #27354a80}
.market-chart-title{display:flex;align-items:center;gap:11px;min-width:0}
.market-chart-token{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;color:#ffdfaa;background:#46351f;border:1px solid #7f633660;font-size:22px;font-weight:600}
.market-chart-title strong{display:block;font-size:15px;font-weight:650;letter-spacing:.2px;line-height:1.4}
.market-chart-title small{display:block;color:var(--mc-muted);font-size:10px;line-height:1.65;letter-spacing:.3px}
.market-chart-tools{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.market-chart-tools button,.market-chart-tools .market-chart-period{appearance:none;border:1px solid #33435c;border-radius:6px;background:#152238;color:#9eafc7;padding:5px 9px;font-family:inherit;font-size:10px;font-weight:500;line-height:1.3;box-shadow:none;min-height:27px;cursor:pointer}
.market-chart-tools button[aria-pressed="true"],.market-chart-tools .market-chart-period{background:#263751;color:#e4edf9;border-color:#415c7f}
.market-chart-tools button:hover{background:#293b55;color:#eef4fc}
.market-chart-tools button:focus-visible{outline:2px solid #7797cf;outline-offset:3px}
.market-chart-key{display:inline-flex;align-items:center;gap:5px;color:#8196b3;font-size:10px}
.market-chart-key i{width:6px;height:6px;border-radius:50%;background:#28c7a0}
.market-chart-key.is-delayed{color:#d9b66f}.market-chart-key.is-delayed i{background:#d9b66f}
.market-quote{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 10px;padding:18px 20px 12px;background:#101b2b;color:#e8eff9;font-variant-numeric:tabular-nums}
.market-quote #btc-price{display:block;margin:0;padding:0;background:none;color:#eff5ff;font-size:36px;font-weight:650;line-height:1.15;letter-spacing:-.7px;text-shadow:none}
.market-quote #btc-currency{display:inline-block;padding-bottom:3px;background:none;color:#96abc6;font-size:12px;font-weight:500;line-height:1.4;letter-spacing:.6px;text-shadow:none}
.market-quote #btc-market-status{flex:0 0 100%;width:100%;min-height:18px;margin:8px 0 0;padding:0;background:none;border:0;color:#8fa4bf;font-size:11px;font-weight:400;line-height:1.65;letter-spacing:0;text-shadow:none;overflow-wrap:anywhere}
.market-chart-card:has(#btc-feed-indicator.is-delayed) .market-quote #btc-market-status{color:#d9b66f}
.market-chart-shell{position:relative;padding:7px 8px 2px;background:#0b1320;isolation:isolate}
svg.market-chart,.market-chart-shell svg.chart,.market-chart-shell svg{display:block;width:100%;height:auto;max-height:none;min-height:0;margin-top:0;aspect-ratio:22/9;overflow:visible;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:crosshair;outline:none}
svg.market-chart:focus-visible,.market-chart-shell svg:focus-visible{outline:1px solid #6888bd;outline-offset:-2px;border-radius:8px}
.market-chart-shell .mc-root text,svg.market-chart .mc-root text{text-shadow:none;font-style:normal;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.market-chart-shell .mc-candle,.market-chart-shell .mc-volume-bar,.market-chart-shell .mc-average{pointer-events:none}
.market-chart-shell .mc-last-line{transition:opacity .12s}.market-chart-shell svg.is-inspecting .mc-last-line{opacity:.38}
.market-chart-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px 12px;border-top:1px solid #24324888;color:#7d92ae;font-size:10px;line-height:1.55;background:#101b2b}
.market-chart-footer strong{color:#b5c4d9;font-size:10px;font-weight:500}
.market-chart-notice{margin:0;padding:10px 18px;color:#ddbd7c;background:#302b2055;border-top:1px solid #66502b50;font-size:11px;line-height:1.6}.market-chart-notice[hidden]{display:none}
@media(max-width:700px){.market-chart-top{padding:13px 13px 11px;gap:10px}.market-chart-title{gap:8px}.market-chart-token{flex-basis:30px;width:30px;height:30px;font-size:19px}.market-chart-title strong{font-size:13px}.market-chart-title small{font-size:9px}.market-chart-tools{gap:5px}.market-chart-tools button,.market-chart-tools .market-chart-period{padding:5px 7px;font-size:9px}.market-chart-shell{padding:3px 2px 0}.market-chart-footer{padding:9px 13px;font-size:9px;gap:8px}.market-chart-footer strong{font-size:9px}}
@media(max-width:700px){.market-quote{padding:14px 13px 10px;gap:0 8px}.market-quote #btc-price{font-size:30px;letter-spacing:-.5px}.market-quote #btc-currency{font-size:11px}.market-quote #btc-market-status{font-size:10px;margin-top:6px}}
@media(prefers-reduced-motion:reduce){.market-chart-shell .mc-last-line{transition:none}}
