/* THORWALLET - the cross-chain route map (routes.js), in the Swaps section.
   Six routes, one hub: an example swap leaves its chain, THORWallet picks the
   route, the swap lands on the other chain. The map stays dark in the light
   theme (it is a diagram of the app's engine, like the device shots). */

.rmap {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
  margin-top: clamp(36px, 4.5vw, 64px); padding: clamp(18px, 2.2vw, 30px);
  border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(70% 90% at 28% 45%, rgba(0, 204, 255, 0.08), transparent 70%), linear-gradient(160deg, #0F2033, #0A1726);
  color: #FFFFFF;
}
.rm-stage { position: relative; }
.rm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rm-side .eyebrow { display: block; margin-bottom: 12px; color: #8FA7BD; }
.rm-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; color: #FFFFFF; }
.rm-lead { margin-top: 12px; color: #C5D2DE; font-size: 0.98rem; line-height: 1.55; max-width: 40ch; }
.rm-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.rm-list button {
  position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 14px; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.025);
  color: #FFFFFF; font: inherit; text-align: left; cursor: pointer; transition: background-color 0.3s, border-color 0.3s;
}
.rm-list button:hover { background: rgba(255, 255, 255, 0.05); }
.rm-list button:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.rm-list .lg { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #0B1522; border: 1px solid rgba(255, 255, 255, 0.1); display: grid; place-items: center; overflow: hidden; }
.rm-list .lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rm-list .lg.pad img { width: 64%; height: 64%; }
.rm-list .tx { flex: 1; min-width: 0; }
.rm-list b { display: block; font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; }
.rm-list .ex { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: #8FA7BD; }
.rm-list .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--rm-col, #33FF99); }
.rm-list button.on { border-color: color-mix(in srgb, var(--rm-col, #33FF99) 45%, transparent); background: color-mix(in srgb, var(--rm-col, #33FF99) 7%, transparent); }
.rm-fine { grid-column: 1 / -1; margin: 0; font-size: 0.78rem; line-height: 1.5; color: #8FA7BD; }

/* svg parts */
.rm-orbit { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; stroke-dasharray: 2 7; }
.rm-orbit.in { stroke: rgba(0, 204, 255, 0.16); stroke-dasharray: none; }
.rm-node circle.bg { fill: #0B1522; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; transition: stroke 0.3s; }
.rm-node.on circle.bg { stroke: var(--rm-col, #33FF99); stroke-width: 2; }
.rm-clabel { font-family: var(--font-mono), monospace; font-size: 10px; letter-spacing: 0.08em; fill: #8FA7BD; text-anchor: middle; }
.rm-node.on .rm-clabel { fill: #FFFFFF; }
.rm-proto circle.bg { fill: #0E1B2B; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; transition: stroke 0.3s; }
.rm-proto { transition: opacity 0.35s; }
.rm-proto.dim { opacity: 0.4; }
.rm-proto.on circle.bg { stroke: var(--rm-col, #33FF99); stroke-width: 2.5; filter: url(#rm-glow); }
.rm-plabel { font-family: var(--font-display), sans-serif; font-size: 10.5px; font-weight: 600; fill: #C5D2DE; text-anchor: middle; }
.rm-proto.on .rm-plabel { fill: #FFFFFF; }
.rm-ring { fill: none; stroke: var(--rm-col, #33FF99); stroke-width: 2; opacity: 0; }
.rm-ask { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.1; opacity: 0; }
.rm-leg { fill: none; stroke: var(--rm-col, #33FF99); stroke-width: 2.6; stroke-linecap: round; filter: url(#rm-glow); }
.rm-coin circle { fill: #0B1522; stroke: var(--rm-col, #33FF99); stroke-width: 2; filter: url(#rm-glow); }
.rm-ok { opacity: 0; }
.rm-ok circle { fill: #33FF99; }
.rm-ok path { fill: none; stroke: #06222B; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rm-cap { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; min-height: 34px; }
.rm-cap .rm-pair { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #FFFFFF; letter-spacing: -0.01em; }
.rm-st {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #0B1522; font-size: 0.84rem; font-weight: 600; color: #C5D2DE; transition: border-color 0.3s, color 0.3s;
}
.rm-st img { display: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.rm-st.pad img { object-fit: contain; padding: 2px; background: #0E1B2B; }
.rm-st.best { border-color: var(--rm-col, #33FF99); color: #FFFFFF; }
.rm-st.best img { display: block; }
.rm-st:not(.best)::after { content: ""; width: 18px; height: 6px; background: radial-gradient(circle, #8FA7BD 45%, transparent 50%) 0 50% / 6px 6px repeat-x; animation: rm-dots 1s steps(3) infinite; }
@keyframes rm-dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.rm-facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rm-facts li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px;
  border: 1px solid rgba(51, 255, 153, 0.28); background: rgba(51, 255, 153, 0.06); font-size: 0.8rem; font-weight: 600; color: #DFF9EC;
}
.rm-facts li::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; background: #33FF99 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.8 7.2l2.1 2.1 4.3-4.5' fill='none' stroke='%2306222B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (prefers-reduced-motion: reduce) { .rm-st::after { animation: none; } }
@media (max-width: 900px) {
  .rmap { grid-template-columns: 1fr; border-radius: 24px; padding: 16px 14px 18px; }
  .rm-side .eyebrow, .rm-h, .rm-lead { text-align: left; }
  .rm-list { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .rm-list button { padding: 9px 10px; gap: 10px; border-radius: 14px; }
  .rm-list .lg { width: 30px; height: 30px; }
  .rm-list b { font-size: 0.86rem; }
  .rm-list .ex { font-size: 0.66rem; }
  .rm-plabel { display: none; }
  .rm-facts li { font-size: 0.74rem; }
}
