.sig-ml { --ml-ease: cubic-bezier(.22,1,.36,1); --ml-g: #6BD68B; --ml-a: #F2C46B; --ml-r: #FF8A8A; border-radius: 32px; padding: 32px; color: #F1F2F7; font-family: "Inter Tight", Inter, sans-serif; font-variant-numeric: tabular-nums; background: radial-gradient(60% 90% at 0% 0%, rgba(79,107,255,.5), transparent 60%), #0B0E2E; }
.sig-ml * { box-sizing: border-box; }
.sig-ml button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
.sig-ml .ml-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; align-items: stretch; }
.sig-ml .ml-panel { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); border-radius: 18px; }
.sig-ml .ml-map { position: relative; overflow: hidden; }
.sig-ml .ml-stage { position: relative; aspect-ratio: 600 / 560; }
.sig-ml .ml-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* dots */
.sig-ml .ml-dot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; z-index: 2; --c: var(--ml-g); opacity: 0; transform: scale(.4); }
.sig-ml.ml-on .ml-dot { opacity: 1; transform: none; transition: opacity .6s var(--ml-ease), transform .6s var(--ml-ease); transition-delay: calc(var(--i) * 70ms); }
.sig-ml .ml-dot[data-s="g"] { --c: var(--ml-g); } .sig-ml .ml-dot[data-s="a"] { --c: var(--ml-a); } .sig-ml .ml-dot[data-s="r"] { --c: var(--ml-r); }
.sig-ml .ml-core { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(11,14,46,.8); transition: background .6s var(--ml-ease); }
.sig-ml .ml-dot::before, .sig-ml .ml-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0; }
.sig-ml.ml-on .ml-dot::before { animation: ml-pulse 2.8s var(--ml-ease) infinite; animation-delay: calc(var(--i) * 230ms); }
.sig-ml .ml-dot[data-s="r"]::after { animation: ml-pulse 1.6s var(--ml-ease) infinite; }
.sig-ml .ml-dot.ml-flash::after { animation: ml-flash .9s var(--ml-ease); border-width: 2px; }
.sig-ml .ml-dot.sel::after { inset: 1px; opacity: 1; border-color: #fff; animation: none; }
@keyframes ml-pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ml-flash { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
.sig-ml .ml-name { position: absolute; top: 50%; left: 24px; transform: translateY(-50%); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: rgba(241,242,247,.55); white-space: nowrap; pointer-events: none; transition: color .3s; }
.sig-ml .ml-dot[data-side="l"] .ml-name { left: auto; right: 24px; }
.sig-ml .ml-dot:hover .ml-name, .sig-ml .ml-dot.sel .ml-name, .sig-ml .ml-dot:focus-visible .ml-name { color: #fff; }
.sig-ml .ml-dot:focus-visible { outline: 2px solid #A9B6FF; outline-offset: 2px; }

/* toasts + legend */
.sig-ml .ml-toasts { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 4; pointer-events: none; }
.sig-ml .ml-toast { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(11,14,46,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); backdrop-filter: blur(6px); animation: ml-in .5s var(--ml-ease) both; }
.sig-ml .ml-toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--ml-g); }
.sig-ml .ml-toast.a i { background: var(--ml-a); } .sig-ml .ml-toast.r i { background: var(--ml-r); }
.sig-ml .ml-toast.out { animation: ml-out .4s var(--ml-ease) forwards; }
@keyframes ml-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ml-out { to { opacity: 0; transform: translateY(-6px); } }
.sig-ml .ml-legend { position: absolute; right: 14px; top: 16px; display: flex; gap: 12px; font-size: 11.5px; color: rgba(241,242,247,.6); z-index: 3; }
.sig-ml .ml-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sig-ml .ml-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--ml-g); }
.sig-ml .ml-legend i.a { background: var(--ml-a); } .sig-ml .ml-legend i.r { background: var(--ml-r); }

/* detail card */
.sig-ml .ml-card { position: absolute; right: 16px; bottom: 16px; width: 280px; padding: 16px; border-radius: 16px; z-index: 5; background: rgba(11,14,46,.88); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px rgba(2,3,20,.5); }
.sig-ml .ml-card.ml-swap { animation: ml-in .45s var(--ml-ease) both; }
.sig-ml .ml-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sig-ml .ml-ch img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.sig-ml .ml-ch b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.sig-ml .ml-ch small { font-size: 12px; color: rgba(241,242,247,.6); }
.sig-ml .ml-pill { margin-left: auto; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; color: #0B0E2E; background: var(--ml-g); }
.sig-ml .ml-pill.a { background: var(--ml-a); } .sig-ml .ml-pill.r { background: var(--ml-r); }
.sig-ml .ml-issues { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.sig-ml .ml-issues li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; line-height: 1.3; color: rgba(241,242,247,.9); }
.sig-ml .ml-issues li i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ml-g); }
.sig-ml .ml-issues li.a i { background: var(--ml-a); } .sig-ml .ml-issues li.r i { background: var(--ml-r); }
.sig-ml .ml-notify { width: 100%; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; background: #4F6BFF; color: #fff; transition: background .3s var(--ml-ease), transform .2s var(--ml-ease); }
.sig-ml .ml-notify:hover { background: #3F5BEF; } .sig-ml .ml-notify:active { transform: scale(.98); }
.sig-ml .ml-notify img { width: 18px; height: 18px; }
.sig-ml .ml-notify.sent { background: rgba(107,214,139,.16); color: var(--ml-g); box-shadow: inset 0 0 0 1px rgba(107,214,139,.4); cursor: default; }
.sig-ml .ml-notify:disabled { cursor: default; }
.sig-ml .ml-notify:focus-visible, .sig-ml .ml-row:focus-visible { outline: 2px solid #A9B6FF; outline-offset: 2px; }

/* leaderboard */
.sig-ml .ml-board { padding: 18px 16px 12px; display: flex; flex-direction: column; }
.sig-ml .ml-board-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.sig-ml .ml-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #A9B6FF; }
.sig-ml .ml-total { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.sig-ml .ml-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ml-g); }
.sig-ml .ml-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ml-g); animation: ml-blink 1.6s ease-in-out infinite; }
@keyframes ml-blink { 50% { opacity: .3; } }
.sig-ml .ml-rows { position: relative; height: calc(12 * 40px); }
.sig-ml .ml-row { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: grid; grid-template-columns: 20px 10px 1fr auto; align-items: center; gap: 8px; padding: 0 8px; border-radius: 10px; text-align: left; transition: transform .8s var(--ml-ease), background .3s; will-change: transform; }
.sig-ml .ml-row:hover, .sig-ml .ml-row.sel { background: rgba(255,255,255,.08); }
.sig-ml .ml-rk { font-size: 12px; color: rgba(241,242,247,.45); }
.sig-ml .ml-sd { width: 8px; height: 8px; border-radius: 50%; background: var(--ml-g); transition: background .5s; }
.sig-ml .ml-row[data-s="a"] .ml-sd { background: var(--ml-a); } .sig-ml .ml-row[data-s="r"] .ml-sd { background: var(--ml-r); }
.sig-ml .ml-rn { font-size: 14px; font-weight: 500; }
.sig-ml .ml-rv { font-size: 14px; font-weight: 600; transition: color .6s; }
.sig-ml .ml-row.up .ml-rv { color: var(--ml-g); transition: none; }
.sig-ml .ml-bar { position: absolute; left: 38px; right: 8px; bottom: 3px; height: 2px; border-radius: 2px; background: #4F6BFF; opacity: .55; transform-origin: left; transform: scaleX(var(--w, .5)); transition: transform .8s var(--ml-ease); }

@media (max-width: 899px) {
  .sig-ml { padding: 16px; border-radius: 24px; }
  .sig-ml .ml-grid { grid-template-columns: 1fr; }
  .sig-ml .ml-card { position: static; width: auto; margin: 0 12px 12px; }
  .sig-ml .ml-legend { display: none; }
  .sig-ml .ml-name { font-size: 10px; }
  .sig-ml .ml-toast { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sig-ml *, .sig-ml *::before, .sig-ml *::after { animation: none !important; transition: none !important; }
  .sig-ml .ml-dot { opacity: 1; transform: none; }
}
.sig-ml .ml-dots { position: absolute; inset: 0; }
