html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden; /* wichtig: keine Browser-Scrollbars */
  background: #e4e2dd;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Viewport = Fenster */
#viewport {
  position: fixed;
  inset: 0;
  touch-action: none; /* wir managen Gesten selbst */
  user-select: none;
  -webkit-user-select: none;
}

/* Hintergrund-Canvas */
#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* World = Koordinatensystem, wird transformiert */
#world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

/* Elemente ("cards") */
.item {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: grab;
  touch-action: none;
}

.item:active { cursor: grabbing; }

.item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text-Element */
.item .text {
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  background: rgba(20, 20, 22, 0.70);
}

/* Hint */
#hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
}
