html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;

  background-color: rgb(30, 30, 30); /* start dark */
  transition: background-color 0.2s linear;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    Helvetica,
    Arial,
    sans-serif;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

#scroll-motion {
  height: 500vh; /* all falling animation */
}

#scroll-led {
  height: 60vh; /* LED-only interaction */
}

#card-status {
  position: fixed;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);

  width: max-content;
  max-width: 92vw;

  text-align: center;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    Helvetica,
    Arial,
    sans-serif;

  color: #111;
  opacity: 0;
  pointer-events: none;
}

#card-status .title {
  font-size: 18px;
  letter-spacing: 0.22em;
  font-weight: 500;
}

#card-status .meta {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.6;
}

#card-status .meta {
  margin-top: 10px;
  font-size: 14px;           /* bigger meta text */
  opacity: 0.6;
}

#card-data {
  position: fixed;
  bottom: 9vh;
  left: 50%;
  transform: translateX(-50%) translateX(0px);

  width: 320px;              /* fixed visual width = cleaner centring */
  max-width: 92vw;

  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 2;

  color: #111;
  opacity: 0;
  pointer-events: none;
}

#card-data a {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;

  text-decoration: none;
  color: inherit;
}

#card-data .key {
  letter-spacing: 0.18em;
  opacity: 0.45;
  text-align: right;
}

#card-data .value {
  opacity: 0.9;
  word-break: break-all;
}

#card-data a:hover .value {
  text-decoration: underline;
}

#card-data.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-hint {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

#touch-to-start {
  position: fixed;
  left: 50%;
  bottom: 38vh;
  transform: translateX(-50%);

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 10;

  opacity: 1;
  transition: opacity 0.6s ease;
}

#touch-to-start.hidden {
  opacity: 0;
}

