/* Nonce Crypto Prices — ticker + prices table styles
 * Editorial palette: ink #0A0A0A, cream #FAFAF7, red #B8242B, mute #6B6B68
 */

/* ===== TICKER ===== */
.nonce-ticker {
  position: relative;
  width: 100%;
  background: #0A0A0A;
  color: #FAFAF7;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  z-index: 50;
}

.nonce-ticker__track {
  display: flex;
  white-space: nowrap;
  animation: nonce-ticker-scroll 90s linear infinite;
  padding: 12px 0;
  width: max-content;
}

.nonce-ticker:hover .nonce-ticker__track {
  animation-play-state: paused;
}

@keyframes nonce-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nonce-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.nonce-ticker__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.nonce-ticker__symbol {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FAFAF7;
}

.nonce-ticker__price {
  color: #FAFAF7;
  font-variant-numeric: tabular-nums;
}

.nonce-ticker__change {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

.nonce-ticker__change--up   { color: #4ADE80; }
.nonce-ticker__change--down { color: #F87171; }

.nonce-ticker__more {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to left, #0A0A0A 70%, transparent);
  padding: 8px 16px 8px 32px;
  color: #B8242B;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
}

.nonce-ticker__more:hover {
  color: #FAFAF7;
}

/* ===== FULL PRICES TABLE ===== */
.nonce-prices-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  background: #FFFFFF;
}

.nonce-prices-table th,
.nonce-prices-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #EFEFEC;
}

.nonce-prices-table th {
  font-weight: 600;
  color: #6B6B68;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #FAFAF7;
}

.nonce-prices-table td.num,
.nonce-prices-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.nonce-prices-table tr:hover td {
  background: #FAFAF7;
}

.nonce-prices-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

.nonce-prices-symbol {
  color: #6B6B68;
  font-weight: 400;
  margin-left: 6px;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.nonce-prices-table .up   { color: #16A34A; font-weight: 600; }
.nonce-prices-table .down { color: #DC2626; font-weight: 600; }

.nonce-prices-meta {
  margin-top: 16px;
  color: #6B6B68;
  font-size: 0.875rem;
  font-style: italic;
}

/* Mobile */
@media (max-width: 640px) {
  .nonce-ticker__more { display: none; }
  .nonce-prices-table { font-size: 0.8125rem; }
  .nonce-prices-table th,
  .nonce-prices-table td { padding: 10px 8px; }
  .nonce-prices-table th:nth-child(4),
  .nonce-prices-table td:nth-child(4),
  .nonce-prices-table th:nth-child(6),
  .nonce-prices-table td:nth-child(6) { display: none; }
}
