* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Splash screen */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 100;
  transition: opacity 1.3s ease;
}

.splash span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
  opacity: 0.7;
}

.splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-dots {
  margin-top: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #fff;
  opacity: 0.4;
}

.loading-dots::after {
  content: '.';
  animation: dots 1.5s steps(1, end) infinite;
}

@keyframes dots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

main {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 600px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.container.ready {
  opacity: 1;
}

.ticker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-bottom: 8px;
}

.price-wrapper {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.currency {
  font-size: 32px;
  font-weight: 300;
  opacity: 0.6;
  margin-right: 4px;
}

.price {
  display: inline-flex;
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.digit-slot {
  display: inline-block;
  height: 1.15em;
  overflow: hidden;
  position: relative;
}

.digit-roll {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.digit-roll span {
  height: 1.15em;
  line-height: 1.15em;
}

/* Price direction flash */
.price.flash-up .digit-roll span {
  color: #22c55e;
}

.price.flash-down .digit-roll span {
  color: #ef4444;
}

.price .digit-roll span {
  transition: color 0.8s ease;
}

.chart-container {
  position: relative;
  margin-top: 60px;
  height: 200px;
  opacity: 0.8;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Live indicator pulse animation */
@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.live-indicator {
  position: absolute;
  pointer-events: none;
}

.live-indicator::before,
.live-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

.live-indicator::after {
  opacity: 0.6;
  animation: pulse 2s ease-out infinite;
}

