body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.barcode {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 200px;
  overflow: visible;
}

/* 3D mode — container fills viewport for Three.js canvas */
.barcode.mode-3d {
  width: 100vw;
  height: 100vh;
  display: block;
}

.bar {
  position: relative;
  z-index: 2;
  background-color: black;
  width: 5px;
  margin: 0 1px;
  height: 0;
  animation: rise 1s ease-out forwards;
}

@keyframes rise {
  to {
    height: var(--final-height);
  }
}

.connector {
  position: absolute;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  z-index: 1;
}

.connector-label {
  margin-left: 6px;
  color: #333;
  font-size: 12px;
  white-space: nowrap;
}

/* Easter egg states */
.bar.egg-golden { background-color: #B8860B; }
.connector-label.egg-golden { color: #B8860B; }
body.egg-ivory { background-color: #FFFFF0; }
