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

body {
  background: #000000;
  color: #ffffff;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  width: 100%;
  max-width: 700px;
  padding: 2rem 1rem;
  text-align: center;
}

/* SEO-only content (visible to crawlers, hidden visually) */
.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.splash-text {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #555555;
  text-transform: lowercase;
}

/* Price section */
.price-section {
  margin-bottom: 1.5rem;
}

.ticker-label {
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: #666666;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.price {
  font-size: 4.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #f0e6e6;
  display: inline-flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

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

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

.digit-strip span {
  display: block;
  height: 1.15em;
  line-height: 1.15em;
}

.digit-static {
  display: inline-block;
  height: 1.15em;
  line-height: 1.15em;
}

/* Change badge - clickable to cycle periods */
.change-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.change-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  border: 1px solid #333333;
  color: #888888;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}

.change-badge:hover {
  border-color: #555555;
}

.change-badge.up {
  background: rgba(0, 200, 83, 0.08);
  border-color: rgba(0, 200, 83, 0.25);
  color: #00c853;
}

.change-badge.down {
  background: rgba(255, 23, 68, 0.08);
  border-color: rgba(255, 23, 68, 0.25);
  color: #ff1744;
}

/* Chart */
.chart-section {
  margin: 1.5rem 0;
}

.chart-label {
  font-size: 0.7rem;
  color: #333333;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  text-align: right;
  transition: color 0.15s;
}

.chart-label.clickable:hover {
  color: #ff6600;
}

#chart-container {
  width: 100%;
  height: 320px;
}

/* Network stats */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #cccccc;
}

.stat-label {
  font-size: 0.7rem;
  color: #555555;
  text-transform: lowercase;
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}

/* Peers link */
.peers-link {
  font-size: 0.7rem;
  color: #555555;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  transition: color 0.15s;
}

.peers-link:hover {
  color: #ff6600;
}

/* Donate */
.donate-section {
  margin-top: 2rem;
  text-align: center;
}

.donate-btn {
  background: transparent;
  border: 1px solid #222222;
  color: #333333;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.donate-btn:hover {
  color: #ff6600;
  border-color: #ff6600;
}

.donate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.donate-overlay.active {
  display: flex;
}

.donate-popup {
  background: #111111;
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
}

.donate-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #555555;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.15s;
}

.donate-close:hover {
  color: #ffffff;
}

.donate-title {
  font-size: 0.8rem;
  color: #666666;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.donate-address {
  font-size: 0.65rem;
  color: #999999;
  word-break: break-all;
  line-height: 1.6;
  font-family: monospace;
  background: #0a0a0a;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  user-select: all;
}

.donate-copy {
  background: transparent;
  border: 1px solid #333333;
  color: #666666;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  padding: 0.3rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.donate-copy:hover {
  color: #ff6600;
  border-color: #ff6600;
}

/* Responsive */
@media (max-width: 600px) {
  .price {
    font-size: 3rem;
  }

  #chart-container {
    height: 250px;
  }

  .stats-section {
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
  }

  .stat-value {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .stats-section {
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
  }
}

@media (min-width: 700px) {
  .price {
    font-size: 5rem;
  }

  #chart-container {
    height: 360px;
  }
}
