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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

#sp-notification-wrapper {
  display: none !important;
}

.splash {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 1s ease, visibility 1s ease;
}

.splash.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo {
  height: 60px;
  width: auto;
  opacity: 0.8;
  animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.container.ready {
  opacity: 1;
  transform: translateY(0);
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

main {
  text-align: center;
}

.price-wrapper {
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: baseline;
}

.volume {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

.currency {
  opacity: 0.4;
  margin-right: 4px;
  font-size: 0.5em;
}

.price {
  display: inline-flex;
}

.digit-slot {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  position: relative;
  vertical-align: baseline;
  min-width: 0.55em;
  text-align: center;
}

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

.digit-roll span {
  display: block;
  height: 1em;
  line-height: 1;
}

.price.flash-up {
  animation: flash-green 0.5s ease;
}

.price.flash-down {
  animation: flash-red 0.5s ease;
}

@keyframes flash-green {
  50% {
    color: #4ade80;
  }
}

@keyframes flash-red {
  50% {
    color: #f87171;
  }
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  margin: 0 auto 40px;
}

#chart {
  width: 100%;
  height: 100%;
}

.live-indicator {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  animation: pulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1);
    opacity: 0.7;
  }
}

footer {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.pulse {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 40px 16px 30px;
  }

  .chart-wrapper {
    height: 140px;
  }
}
