/* Cointracts market wall. Scoped addition; the approved page styles are unchanged. */
.ct-markets {
  --market-gap: 16px;
  position: relative;
  overflow: clip;
  padding: 48px 0 34px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 44%, #15352c30 0, transparent 65%), var(--bg);
  scroll-margin-top: 20px;
}
.ct-markets-heading { text-align: center; margin-bottom: 28px; }
.ct-markets-heading h2 { margin: 13px 0 14px; font: 650 clamp(32px, 3.2vw, 46px)/1.08 var(--sans); letter-spacing: -.04em; }
.ct-markets-heading h2 span { color: var(--cyan); }
@media (min-width:761px) { .ct-markets-heading h2 br { display: none; } .ct-markets-heading h2 span::before { content: ' '; } }
.ct-markets-heading > p:last-child { margin: 0; color: #adbfbd; font-size: 14px; line-height: 1.65; }
.ct-market-wall {
  display: grid;
  gap: var(--market-gap);
  width: min(1540px, 100%);
  margin-inline: auto;
  padding-block: 5px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ct-market-row { overflow: hidden; }
.ct-market-track { display: flex; width: max-content; animation: ct-market-drift var(--duration, 65s) linear infinite; animation-delay: var(--offset, -12s); }
.ct-market-row:nth-child(even) .ct-market-track { animation-direction: reverse; }
.ct-market-group { display: flex; flex: 0 0 auto; align-items: center; gap: var(--market-gap); padding-right: var(--market-gap); }
.ct-market-pill {
  display: inline-flex; align-items: center; flex: 0 0 auto; gap: 13px;
  min-width: 182px; height: 72px; padding: 9px 24px 9px 10px;
  color: #f2f6f5; text-align: left; border: 1px solid #c3e7dd1b; border-radius: 100px;
  background: linear-gradient(145deg, #ffffff0a, #ffffff03), #0b1519;
  box-shadow: inset 0 1px 0 #ffffff05;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ct-market-pill img, .ct-market-icon { width: 50px; height: 50px; border-radius: 50%; object-fit: contain; flex: 0 0 50px; }
.ct-market-pill strong { display: block; font-size: 19px; font-weight: 550; line-height: 1.25; letter-spacing: -.035em; white-space: nowrap; }
.ct-market-pill small { display: block; margin-top: 4px; font-size: 11px; color: #91a6a8; line-height: 1.2; letter-spacing: .045em; }
.ct-market-pill small span { color: #78918f; }
.ct-market-pill:hover { border-color: #6ef4d270; background: #142723; box-shadow: inset 0 0 22px #6ef4d208; }
.ct-markets[data-paused="true"] .ct-market-track,
.ct-markets[data-offscreen="true"] .ct-market-track,
.ct-markets[data-dialog-open="true"] .ct-market-track { animation-play-state: paused; }
@media (hover: hover) { .ct-market-wall:hover .ct-market-track { animation-play-state: paused; } }
.ct-markets-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.ct-market-caption { display: flex; align-items: center; gap: 9px; color: #91a9a6; font-size: 11px; }
.ct-market-caption svg { width: 15px; height: 15px; color: #82b7ab; }
.ct-market-controls { display: flex; align-items: center; gap: 12px; }
.ct-market-browse, .ct-market-toggle {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px;
  border: 1px solid #abcfc92d; border-radius: 5px; background: #0b1718; color: #ecf5f1;
  font-size: 12px; font-weight: 550; padding: 9px 17px;
}
.ct-market-browse > span { color: var(--cyan); font-size: 17px; }
.ct-market-toggle { width: 42px; padding: 9px; color: #91b8ae; }
.ct-market-toggle svg { width: 16px; height: 16px; }
.ct-market-toggle[aria-pressed="false"] .ct-play, .ct-market-toggle[aria-pressed="true"] .ct-pause { display: none; }
.ct-market-browse:hover, .ct-market-toggle:hover { background: #16342c; border-color: #6ef4d270; }
.ct-market-noscript { text-align: center; padding: 30px; color: #bdcecb; }
@keyframes ct-market-drift { from { transform: translateX(0); } to { transform: translateX(-33.333333%); } }

.ct-market-dialog { width: min(680px, calc(100% - 32px)); max-height: min(780px, calc(100dvh - 40px)); padding: 0; border: 1px solid #81bbad42; border-radius: 16px; background: #0a1418; color: var(--ink); box-shadow: 0 32px 120px #000a; }
.ct-market-dialog[open] { display: flex; flex-direction: column; height: min(760px, calc(100dvh - 40px)); overflow: hidden; }
.ct-market-dialog-head, .ct-market-search, .ct-market-dialog-foot, .ct-market-empty { flex: 0 0 auto; }
.ct-market-dialog::backdrop { background: #02090cbd; backdrop-filter: blur(9px); }
.ct-market-dialog-head { position: relative; padding: 30px 30px 20px; }
.ct-market-dialog-head h2 { margin: 9px 40px 7px 0; font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.15; }
.ct-market-dialog-head > p:last-child { margin: 0; color: #a5bcb7; font-size: 13px; }
.ct-market-close { position: absolute; right: 20px; top: 20px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #9fbfbf26; border-radius: 50%; background: #102025; color: #b4ccc6; }
.ct-market-close svg { width: 18px; height: 18px; }
.ct-market-search { display: flex; align-items: center; gap: 10px; margin: 0 30px 20px; border: 1px solid #9bbfb43d; background: #071013; padding: 12px 15px; border-radius: 7px; }
.ct-market-search:focus-within { border-color: var(--cyan); }
.ct-market-search svg { width: 18px; height: 18px; color: #81a79b; flex: 0 0 auto; }
.ct-market-search input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; outline: 0; color: #e5f2ed; font-size: 14px; }
.ct-market-search input::placeholder { color: #829b94; }
.ct-market-results { list-style: none; margin: 0; padding: 0 30px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #456b60 transparent; align-content: start; }
.ct-market-result { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid #adcfc91c; border-radius: 8px; background: #12212080; }
.ct-market-result img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }
.ct-market-pill img[src$="/wld.png"], .ct-market-result img[src$="/wld.png"] { background: #edf2f0; padding: 5px; }
.ct-market-result strong { display: block; font-size: 14px; font-weight: 550; }
.ct-market-result small { display: block; color: #8fa9a1; font-size: 10px; margin-top: 2px; letter-spacing: .04em; }
.ct-market-empty { text-align: center; padding: 28px 30px; color: #aec6bd; font-size: 14px; }
.ct-market-dialog-foot { position: sticky; bottom: 0; padding: 18px 30px 22px; border-top: 1px solid #9fbfbf26; background: #0a1418; }
.ct-market-dialog-foot p { margin: 0 0 13px; font-size: 11px; line-height: 1.55; color: #8ea99f; }
.ct-market-dialog-foot .button { min-height: 46px; width: 100%; font-size: 14px; }

@media (min-width:1640px) { .ct-market-pill { min-width: 210px; height: 82px; gap: 15px; } .ct-market-pill img { width: 58px; height: 58px; flex-basis: 58px; } .ct-market-pill strong { font-size: 22px; } .ct-market-pill small { font-size: 12px; } }
@media (max-width:760px) {
  .ct-markets { --market-gap: 11px; padding: 32px 0 22px; }
  .ct-markets-heading { margin-bottom: 19px; }
  .ct-markets-heading .eyebrow { font-size: 9px; letter-spacing: 2px; }
  .ct-markets-heading h2 { margin: 12px 0; font-size: clamp(29px, 7.8vw, 38px); }
  .ct-markets-heading > p:last-child { max-width: 270px; margin-inline: auto; font-size: 12px; }
  .ct-market-wall { mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
  .ct-market-row:nth-child(4) { display: none; }
  .ct-market-pill { min-width: 155px; height: 59px; gap: 10px; padding: 7px 18px 7px 8px; }
  .ct-market-pill img { width: 40px; height: 40px; flex-basis: 40px; }
  .ct-market-pill strong { font-size: 16px; }
  .ct-market-pill small { font-size: 9px; margin-top: 3px; }
  .ct-markets-footer { flex-direction: column; gap: 11px; margin-top: 17px; }
  .ct-market-caption { font-size: 10px; }
  .ct-market-controls { width: 100%; justify-content: center; }
  .ct-market-browse { min-width: 210px; }
  .ct-market-dialog-head { padding: 26px 20px 18px; }
  .ct-market-dialog-head h2 { font-size: 25px; }
  .ct-market-dialog-head > p:last-child { font-size: 12px; }
  .ct-market-search { margin: 0 20px 16px; }
  .ct-market-results { padding: 0 20px 20px; gap: 8px; }
  .ct-market-result { padding: 10px 8px; gap: 8px; }
  .ct-market-result img { width: 29px; height: 29px; }
  .ct-market-result strong { font-size: 11px; }
  .ct-market-result small { font-size: 8px; }
  .ct-market-dialog-foot { padding: 16px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-market-track { animation: none; transform: none; }
  .ct-market-row { overflow-x: auto; scrollbar-width: thin; }
  .ct-market-row:nth-child(even) .ct-market-track { transform: none; }
  .ct-market-toggle { display: none; }
  .ct-market-pill { transition: none; }
}
