/* Type-to-highlight panel (js/tickerTypeToHighlight.js): the matching
   symbols in large type near the bottom of the screen. */

.tth-spot {
  position: fixed;
  left: 50%;
  bottom: 9vh;
  z-index: 9500;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel, #fff) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 40px -12px rgba(15, 23, 42, 0.3);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px) scale(0.98);
  transition: opacity 0.07s linear, transform 0.1s ease-out;
  pointer-events: none;
}

.tth-spot.is-open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

[data-theme="dark"] .tth-spot {
  background: color-mix(in srgb, #161b22 88%, transparent);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7);
}

.tth-spot-sym {
  padding: 0 0 0.1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
}

.tth-spot-sym b {
  font-weight: 650;
  color: var(--text);
}

.tth-spot-sym.is-selected {
  border-bottom-color: var(--accent);
}

.tth-spot-sym.is-on,
.tth-spot-sym.is-on b {
  color: var(--accent);
}

.tth-spot-sym.is-miss {
  cursor: default;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.tth-spot-more,
.tth-spot-note {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.tth-spot-note kbd {
  font: inherit;
}

.tth-spot-check {
  display: inline-flex;
  align-self: center;
  color: var(--accent);
  animation: tth-pop 0.12s ease-out;
}

.tth-spot-check.is-off {
  color: var(--text-muted);
}

@keyframes tth-pop {
  from { transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .tth-spot,
  .tth-spot-check {
    transition: none;
    animation: none;
  }
}
