/* HypedLaunches — Hyperliquid Whale Alerts feed (scoped with .hla-*) */
.hla-root {
  --hla-bg: #0a0a0a;
  --hla-panel: #111517;
  --hla-row-hover: rgba(151, 252, 228, 0.035);
  --hla-line: rgba(255, 255, 255, 0.07);
  --hla-text: #f0f0f0;
  --hla-muted: #8a9396;
  --hla-dim: #5b6467;
  --hla-mint: #97fce4;
  --hla-mint-2: #00e5c8;
  --hla-mint-dim: rgba(151, 252, 228, 0.12);
  --hla-up: #3ddc97;
  --hla-down: #ff5c74;
  --hla-neutral: #f5c26b;
  --hla-warn: #f5c26b;
  display: flex;
  justify-content: center;
  width: 100%;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--hla-text);
}
.hla-root *, .hla-root *::before, .hla-root *::after { box-sizing: border-box; }

.hla {
  width: 100%;
  max-width: 640px;
  background: var(--hla-panel);
  border: 1px solid var(--hla-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hla-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.hla-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.2px; color: var(--hla-text); }
.hla-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--hla-muted); white-space: nowrap; }
.hla-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hla-mint-2); box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.5); animation: hla-pulse 2s infinite; }
.hla-dot-stale { background: var(--hla-warn); animation: none; }
@keyframes hla-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(0, 229, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 200, 0); }
}
.hla-warn { color: var(--hla-warn); }

.hla-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px 12px; flex-wrap: wrap; }
.hla-range {
  font-size: 11px; font-weight: 600; color: var(--hla-text); white-space: pre;
  background: #1a2023; border: 1px solid var(--hla-line); border-radius: 999px; padding: 7px 14px;
}
.hla-filter-btn {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--hla-text); background: #1a2023; border: 1px solid var(--hla-line); border-radius: 10px; padding: 7px 12px;
}
.hla-filter-btn:hover, .hla-filter-btn[aria-expanded="true"] { border-color: rgba(151, 252, 228, 0.35); color: var(--hla-mint); }
.hla-filter-count { background: var(--hla-mint-2); color: #00221c; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 0 6px; line-height: 16px; }

.hla-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 20px 14px; }
.hla-filters[hidden] { display: none; }
.hla-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--hla-dim); text-transform: uppercase; letter-spacing: 0.6px; }
.hla-filters select {
  appearance: none; -webkit-appearance: none; width: 100%;
  background: #0d1113 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a9396' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--hla-text); border: 1px solid var(--hla-line); border-radius: 8px;
  font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; padding: 7px 24px 7px 9px; cursor: pointer;
}
.hla-filters select:focus { outline: none; border-color: rgba(151, 252, 228, 0.4); }

.hla-stale {
  margin: 0 20px 12px; padding: 8px 12px; border-radius: 8px; font-size: 12px;
  color: var(--hla-warn); background: rgba(245, 194, 107, 0.08); border: 1px solid rgba(245, 194, 107, 0.2);
}

.hla-feed-wrap { position: relative; border-top: 1px solid var(--hla-line); }
.hla-feed {
  list-style: none; margin: 0; padding: 0;
  max-height: min(75vh, 760px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #263033 transparent;
}
.hla-newpill {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--hla-mint-2); color: #00221c; border: 0; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 700; padding: 6px 14px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hla-row {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: start; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--hla-line); transition: background 0.2s;
}
.hla-row:hover { background: var(--hla-row-hover); }
.hla-row:last-child { border-bottom: 0; }
.hla-new { animation: hla-in 0.6s ease-out, hla-flash 1.6s ease-out; }
@keyframes hla-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes hla-flash { from { background: var(--hla-mint-dim); } to { background: transparent; } }

.hla-icon { position: relative; width: 34px; height: 34px; margin-top: 2px; }
.hla-icon img { position: absolute; inset: 0; width: 34px; height: 34px; border-radius: 50%; z-index: 1; background: var(--hla-bg); }
.hla-mono {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #1a2124; color: var(--hla-muted); font-size: 10px; font-weight: 700; border: 1px solid var(--hla-line);
}
.hla-mono-hype { background: var(--hla-mint-dim); color: var(--hla-mint); border-color: rgba(151, 252, 228, 0.25); }

.hla-body { min-width: 0; }
.hla-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; min-height: 12px; }
.hla-marks { display: inline-flex; gap: 3px; }
.hla-marks i { display: block; width: 10px; height: 10px; border-radius: 2px; }
.hla-marks.hla-up i { background: var(--hla-up); box-shadow: 0 0 6px rgba(61, 220, 151, 0.35); }
.hla-marks.hla-down i { background: var(--hla-down); box-shadow: 0 0 6px rgba(255, 92, 116, 0.35); }
.hla-marks.hla-neutral i { background: var(--hla-mint-2); box-shadow: 0 0 6px rgba(0, 229, 200, 0.35); }
.hla-cat { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--hla-dim); }
.hla-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: var(--hla-warn);
  border: 1px solid rgba(245, 194, 107, 0.35); border-radius: 4px; padding: 1px 5px;
}
.hla-main {
  display: block; font-size: 14px; font-weight: 700; color: var(--hla-text); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.hla-main:hover { color: var(--hla-mint); }
.hla-sub {
  margin-top: 3px; font-size: 12px; color: var(--hla-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hla-time {
  display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--hla-muted);
  text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px;
}
.hla-time:hover { color: var(--hla-mint); }
.hla-ext { font-size: 10px; opacity: 0.55; }

.hla-empty { padding: 40px 20px; text-align: center; color: var(--hla-muted); font-size: 13px; }

.hla-foot { padding: 12px 20px 16px; border-top: 1px solid var(--hla-line); text-align: center; }
.hla-more {
  background: transparent; color: var(--hla-mint); border: 1px solid rgba(151, 252, 228, 0.25);
  border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; padding: 7px 18px; cursor: pointer; margin-bottom: 10px;
}
.hla-more:hover { background: var(--hla-mint-dim); }
.hla-more:disabled { opacity: 0.5; cursor: default; }
.hla-note { margin: 0; font-size: 11px; color: var(--hla-dim); line-height: 1.5; }

@media (max-width: 560px) {
  .hla { border-radius: 0; border-left: 0; border-right: 0; }
  .hla-head { padding: 14px 14px 4px; }
  .hla-title { font-size: 18px; }
  .hla-toolbar { padding: 8px 14px 10px; }
  .hla-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 12px; }
  .hla-row { padding: 12px 14px; gap: 10px; grid-template-columns: 30px 1fr auto; }
  .hla-icon, .hla-icon img, .hla-mono { width: 30px; height: 30px; }
  .hla-main { font-size: 13px; white-space: normal; }
  .hla-sub { white-space: normal; }
  .hla-time { font-size: 10px; }
  .hla-feed { max-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  .hla-dot, .hla-new { animation: none; }
}
