.map-demo { grid-column: 1 / -1; width: min(1280px, calc(100% - 80px)); min-width: 0; margin: 32px auto 0; scroll-margin-top: 24px; color: #e6edf8; }
.map-demo *, .map-demo *::before, .map-demo *::after { box-sizing: border-box; }
.map-demo-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.map-demo-heading h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 600; letter-spacing: -1.4px; margin: 12px 0; }
.map-demo-heading p { max-width: 680px; color: #a6b4cb; font-size: 15px; line-height: 1.7; margin: 0; }
.map-demo-badge { flex-shrink: 0; padding: 9px 12px; border: 1px solid #786033; border-radius: 8px; background: #272215; color: #f6d48b; font: 600 10px 'Inter', sans-serif; letter-spacing: .7px; }
.map-demo-shell { overflow: hidden; border: 1px solid #34415a; border-radius: 12px; background: #0c1017; box-shadow: 0 18px 65px #0004; font-family: ui-monospace, 'Cascadia Code', monospace; }
.map-demo select, .map-demo button { min-height: 36px; border: 1px solid #3b4662; border-radius: 8px; color: #e8eaf8; background: #1a2235; padding: 7px 10px; font: 600 11px ui-monospace, monospace; cursor: pointer; }
.map-demo select { color-scheme: dark; width: 100%; }
.map-demo-workspace { display: grid; grid-template-columns: 52px minmax(0,1fr); }
.map-demo-rail { background: linear-gradient(#202531,#141922); border-right: 1px solid #343b4b; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 5px 10px; }
.map-demo-brand { width: 34px; height: 36px; border-radius: 10px; background: #7863ff; display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 9px; box-shadow: 0 0 18px #7863ff22; }
.map-demo-brand i { width: 4px; background: #eeebff; border-radius: 2px; height: 12px; }
.map-demo-brand i:nth-child(2) { height: 21px; }.map-demo-brand i:nth-child(3) { height: 16px; }
.map-demo-rail-icon { border: 1px solid #5d508b; border-radius: 8px; color: #bcb0f3; padding: 6px; width: 32px; height: 32px; }
.map-demo svg { width: 21px; height: 21px; flex: 0 0 auto; display: block; }
.map-demo-tf-label { color: #66768e; font-size: 8px; letter-spacing: 1px; margin-top: 6px; }
.map-demo-rail nav { display: grid; gap: 5px; width: 100%; }
.map-demo-rail button { padding: 6px 2px; min-height: 39px; width: 100%; background: none; border: 1px solid transparent; color: #8f9cb0; font-size: 10px; }
.map-demo-rail button[aria-pressed="true"] { color: #fff; background: linear-gradient(130deg,#538fdc,#416cc1); border-color: #6699e5; box-shadow: 0 3px 12px #558cda22; }
.map-demo-rail-demo { margin-top: auto; color: #c3a666; font-size: 7px; letter-spacing: 1px; }
.map-demo-hud { position: absolute; top: 9px; left: 10px; right: 78px; display: flex; gap: 7px; align-items: stretch; pointer-events: none; z-index: 3; }
.map-demo-hud > * { pointer-events: auto; }
.map-demo .map-demo-market { position: relative; display: flex; align-items: center; gap: 6px; min-width: 148px; width: 148px; flex: 0 0 auto; padding: 4px 16px 4px 5px; border: 1px solid #65568f; border-radius: 8px; background: linear-gradient(115deg,#111622ed,#1a1836eb); box-shadow: 0 8px 24px #0003; }
.map-demo-coins { width: 24px; height: 24px; flex: 0 0 24px; }
.map-demo-coins img { width: 24px; height: 24px; }
.map-demo-market-copy { display: grid; min-width: 0; gap: 1px; }
.map-demo .map-demo-market select { padding: 0; min-height: 18px; background: none; border: 0; color: #e7eaf4; font-size: 11px; font-weight: 700; appearance: none; border-radius: 0; }
.map-demo-market-copy small { color: #8a97ad; font: 9px ui-monospace, monospace; }
.map-demo-market-dot { position: absolute; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #f1c40f; box-shadow: 0 0 9px #f1c40f55; }
.map-demo .map-demo-hud-action { display: flex; align-items: center; gap: 6px; white-space: nowrap; background: #1d1b39e8; color: #c4bcf5; border-color: #50466f; border-radius: 9px; padding: 5px 9px; min-height: 36px; }
.map-demo-hud-action b { color: #86e1ca; font-size: 9px; padding: 2px 5px; border-radius: 8px; background: #1c464c; }
.map-demo .map-demo-hud-action[data-demo-panel="suggestions"] { color: #9cdbd6; border-color: #3b5b6b; background: #182434eb; }
.map-demo-tools { position: absolute; top: 58px; left: 10px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border: 1px solid #343943; border-radius: 11px; background: #0f1218ed; box-shadow: 0 16px 38px #0005; }
.map-demo-tools button { display: grid; place-items: center; width: 29px; height: 29px; min-height: 29px; padding: 3px; background: none; border: 1px solid transparent; color: #9aa5b5; border-radius: 7px; }
.map-demo-tools button[aria-pressed="true"] { background: #7c6cff33; border-color: #7c6cff80; color: #fff; }
.map-demo-tools [data-demo-scenario="long"] { color: #67d9b4; }.map-demo-tools [data-demo-scenario="short"] { color: #ff8a93; }
.map-demo-tools [data-demo-clear] { color: #dba5a5; }.map-demo-divider { width: 22px; height: 1px; background: #39404c; margin: 3px 0; }
.map-demo [data-demo-action="play"] { margin-left: auto; min-width: 88px; min-height: 28px; padding: 3px 8px; color: #d9d1ff; border-color: #50486c; background: #25203a; }
.map-demo button:hover, .map-demo-footer a:hover { background: #302947; }
.map-demo :is(button, select, input, a, canvas):focus-visible, .map-demo-jump:focus-visible { outline: 2px solid #c0b5ff; outline-offset: 3px; }
.map-demo button:disabled { opacity: .4; cursor: default; }
.map-demo-info { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 6px 12px 6px 62px; font-size: 9px; color: #8795a9; background: #171c25; border-top: 1px solid #29313e; }
.map-demo-status { display: flex; align-items: center; gap: 7px; }
.map-demo-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #d8b76b; }
.map-demo[data-playing="true"] .map-demo-status::before { background: #68cdb9; box-shadow: 0 0 10px #68cdb955; }
.map-demo-legend { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; white-space: nowrap; border: 1px solid #32506a; border-radius: 5px; background: #0d1117d9; color: #e8d20c; font-size: 10px; font-weight: 700; }
.map-demo-legend small { color: #8c97a9; font-size: 9px; font-weight: 400; }
.map-demo-legend i { width: 64px; height: 7px; background: linear-gradient(90deg,#0b1e36,#06374f,#29742f,#d0b909,#ee7709,#e03e1c); }
.map-demo-stage { height: 580px; position: relative; min-width: 0; background: #0c1017; }
.map-demo canvas { display: block; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; cursor: grab; }
.map-demo canvas.is-dragging { cursor: grabbing; }
.map-demo-watermark { position: absolute; bottom: 40px; left: 58px; font-size: 13px; letter-spacing: 2px; font-weight: 700; color: #b9c7df35; pointer-events: none; }
.map-demo-tooltip { position: absolute; z-index: 2; max-width: calc(100% - 85px); padding: 8px 10px; white-space: pre-line; background: #102028f5; border: 1px solid #344a59; border-radius: 5px; color: #e7edf8; font: 10px/1.7 ui-monospace, monospace; pointer-events: none; box-shadow: 0 8px 25px #0005; }
.map-demo-panel { position: absolute; z-index: 5; top: 54px; right: 80px; width: 310px; max-width: calc(100% - 66px); padding: 16px; border: 1px solid #5c527b; border-radius: 13px; background: #111827f5; box-shadow: 0 18px 48px #0008; }
.map-demo-panel header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.map-demo-panel header small { color: #d8bb79; font-size: 9px; letter-spacing: 1px; }.map-demo-panel h3 { margin: 6px 0; font-size: 16px; }
.map-demo-panel p { font-size: 11px; line-height: 1.6; color: #9eacc4; margin: 10px 0; }
.map-demo-panel-list { display: grid; gap: 8px; }.map-demo-panel-list button { display: grid; gap: 6px; padding: 12px; text-align: left; background: #1a2335; }
.map-demo-panel-list span { color: #9facc5; font-size: 10px; }.map-demo-panel-list small { color: #b9acf1; font-size: 10px; }
.map-demo [hidden] { display: none !important; }
.map-demo-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px 8px; border-top: 1px solid #263247; }
.map-demo-ohlc { display: flex; flex-wrap: wrap; gap: 12px; font: 11px/1.6 ui-monospace, monospace; color: #a2b4ce; }
.map-demo-ohlc strong { color: #e7edf7; }
.map-demo-navigation { display: flex; gap: 6px; }
.map-demo-navigation button { min-width: 42px; padding: 8px 10px; }
.map-demo-help, .map-demo-fallback { font-size: 11px; color: #90a2bc; line-height: 1.7; padding: 10px 20px 16px; margin: 0; }
.map-demo-keyboard { display: block; }
.map-demo-notice { color: #9eacc2; font-size: 11px; line-height: 1.8; margin: 16px 4px 0; max-width: 980px; }
.map-demo-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
.map-demo-footer p { color: #b3bed0; font-size: 13px; }
.map-demo-footer a { display: inline-flex; align-items: center; gap: 20px; padding: 13px 20px; border: 1px solid #68568f; border-radius: 9px; color: #e0d6ff; background: #27203a; text-decoration: none; font-size: 13px; }
.map-demo-jump { display: inline-block; margin: 12px 0 2px; padding: 10px 0; color: #c2b6ff; font: 500 13px/1.5 'Inter', sans-serif; text-decoration: none; }
.map-demo-jump:hover { color: #fff; }
@media (max-width: 900px) {
  .map-demo { width: calc(100% - 40px); }
  .map-demo-heading { align-items: start; flex-direction: column; gap: 16px; }
  .map-demo-hud .map-demo-legend { display: none; }
}
@media (max-width: 600px) {
  .map-demo { width: calc(100% - 32px); margin-top: 25px; }
  .map-demo-shell { border-radius: 13px; }
  .map-demo-workspace { grid-template-columns: 40px minmax(0,1fr); }
  .map-demo-rail { padding: 9px 3px; gap: 10px; }.map-demo-brand { width: 29px; height: 32px; }
  .map-demo-rail-icon { width: 28px; height: 30px; padding: 5px 3px; }.map-demo-rail nav { gap: 2px; }
  .map-demo-rail button { min-height: 42px; font-size: 9px; }
  .map-demo-hud { top: 8px; left: 5px; right: 5px; gap: 5px; }
  .map-demo .map-demo-market { min-width: 148px; width: 148px; padding: 4px 12px 4px 4px; gap: 4px; }
  .map-demo-coins, .map-demo-coins img { width: 20px; height: 20px; flex-basis: 20px; }
  .map-demo .map-demo-market select { font-size: 16px; }.map-demo-market-copy small { font-size: 8px; }
  .map-demo .map-demo-hud-action { width: 36px; padding: 5px; justify-content: center; }
  .map-demo-hud-action > span, .map-demo-hud-action b { display: none; }
  .map-demo-tools { left: 5px; top: 57px; padding: 3px; gap: 2px; }.map-demo-tools button { width: 28px; min-height: 34px; height: 34px; }
  .map-demo-tools svg { width: 19px; height: 19px; }
  .map-demo-info { padding: 8px 10px; gap: 8px; }.map-demo-info > span:nth-child(2) { display: none; }
  .map-demo [data-demo-action="play"] { min-height: 36px; }
  .map-demo-stage { height: 470px; }
  .map-demo-panel { right: 5px; top: 54px; max-width: calc(100% - 10px); padding: 12px; }.map-demo-panel-list button { min-height: 60px; }
  .map-demo-bottom { padding: 14px; gap: 12px; }
  .map-demo-navigation { width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .map-demo-navigation button { flex: 1; min-width: 0; min-height: 44px; }
  .map-demo-navigation [data-demo-action="reset"] { grid-column: 1 / -1; }
  .map-demo-help { padding: 0 14px 14px; }
  .map-demo-keyboard { display: none; }
  .map-demo-footer a { width: 100%; justify-content: center; }
}
