/* Live ANT price card (stock.js). */
.stock {
  --up: #15803d;
  --down: #c62828;
  min-width: 230px;
  margin-top: 0.25rem;
  padding: 0.9rem 1.3rem 0.85rem;
  border-radius: 14px;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, Canvas 88%, CanvasText 5%);
  border: 1px solid color-mix(in srgb, CanvasText 14%, transparent);
}
.stock-head { display: flex; justify-content: center; align-items: baseline; gap: 0.5rem; }
.stock-symbol { font-weight: 700; letter-spacing: 0.06em; }
.stock-name { font-size: 0.8rem; opacity: 0.7; }
.stock-price { font-size: 1.9rem; font-weight: 600; line-height: 1.25; margin-top: 0.15rem; }
.stock-change { font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.stock.up .stock-change { color: var(--up); }
.stock.down .stock-change { color: var(--down); }
.stock-status {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-top: 0.45rem; font-size: 0.75rem; opacity: 0.7;
}
.stock-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.stock.open .stock-dot { background: #22c55e; opacity: 1; animation: stock-pulse 2s ease-in-out infinite; }

@keyframes stock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0.6); }
  50% { box-shadow: 0 0 0 5px rgb(34 197 94 / 0); }
}

@media (prefers-color-scheme: dark) {
  .stock { --up: #3ddc84; --down: #ff6b6b; }
}
@media (prefers-reduced-motion: reduce) {
  .stock.open .stock-dot { animation: none; }
}
