/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Root vars ─── */
:root {
  --blue:        #627EEA;
  --blue-dim:    #3F5BC4;
  --blue-dark:   #0D1733;
  --blue-ghost:  rgba(98, 126, 234, 0.08);
  --black:       #000000;
}

/* ─── Body ─── */
body {
  background: var(--black);
  overflow: hidden;
  font-family: 'VT323', monospace;
  color: var(--blue);
  cursor: default;
}

/* ─── Matrix canvas ─── */
#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ─── Overlay ─── */
#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* ─── Price card ─── */
#price-card {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--blue-dim);
  padding: 2.5rem 4rem;
  text-align: center;
  box-shadow:
    0 0 40px rgba(98, 126, 234, 0.25),
    0 0 80px rgba(98, 126, 234, 0.10),
    inset 0 0 30px rgba(98, 126, 234, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ─── Label ─── */
#label {
  font-size: 1.6rem;
  letter-spacing: 0.45em;
  color: var(--blue-dim);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

/* ─── Price ─── */
#price {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-shadow:
    0 0 20px rgba(98, 126, 234, 0.8),
    0 0 40px rgba(98, 126, 234, 0.4);
}

/* ─── Change ─── */
#change {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-top: 0.6rem;
  min-height: 2rem;
}

#change.up   { color: #4ade80; text-shadow: 0 0 12px rgba(74, 222, 128, 0.6); }
#change.down { color: #f87171; text-shadow: 0 0 12px rgba(248, 113, 113, 0.6); }

/* ─── Timestamp ─── */
#updated {
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--blue-dim);
  margin-top: 1.2rem;
  opacity: 0.7;
}

/* ─── Scanline overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(98, 126, 234, 0.015) 2px,
    rgba(98, 126, 234, 0.015) 4px
  );
  pointer-events: none;
  z-index: 20;
}
